From: Henrique Mendonca Date: Wed, 3 Oct 2012 09:25:52 +0000 (+0000) Subject: Thrift-336: Compact Protocol in C# X-Git-Tag: 0.9.1~296 X-Git-Url: https://source.supwisdom.com/gerrit/gitweb?a=commitdiff_plain;h=ecad39224c5b03a316c0953322de235ebce088f7;p=common%2Fthrift.git 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 aff7f65d..68e52867 100644 --- a/lib/csharp/src/Protocol/TSet.cs +++ b/lib/csharp/src/Protocol/TSet.cs @@ -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; }