Thrift-336: Compact Protocol in C#
Patch: Henrique Mendonça


git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1393368 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/lib/csharp/src/Protocol/TSet.cs b/lib/csharp/src/Protocol/TSet.cs
index aff7f65..68e5286 100644
--- a/lib/csharp/src/Protocol/TSet.cs
+++ b/lib/csharp/src/Protocol/TSet.cs
@@ -39,6 +39,11 @@
 			this.count = count;
 		}
 
+		public TSet(TList list)
+			: this(list.ElementType, list.Count)
+		{
+		}
+
 		public TType ElementType
 		{
 			get { return elementType; }