Thrift-336: Compact Protocol in C#
authorHenrique Mendonca <henrique@apache.org>
Wed, 3 Oct 2012 09:25:52 +0000 (09:25 +0000)
committerHenrique Mendonca <henrique@apache.org>
Wed, 3 Oct 2012 09:25:52 +0000 (09:25 +0000)
Patch: Henrique Mendonça

git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1393368 13f79535-47bb-0310-9956-ffa450edef68

lib/csharp/src/Protocol/TSet.cs

index aff7f65..68e5286 100644 (file)
@@ -39,6 +39,11 @@ namespace Thrift.Protocol
                        this.count = count;
                }
 
+               public TSet(TList list)
+                       : this(list.ElementType, list.Count)
+               {
+               }
+
                public TType ElementType
                {
                        get { return elementType; }