Author: henrique
Date: Wed Oct 3 09:25:52 2012
New Revision: 1393368
URL: http://svn.apache.org/viewvc?rev=1393368&view=rev
Log:
Thrift-336: Compact Protocol in C#
Patch: Henrique Mendonça
Modified:
thrift/trunk/lib/csharp/src/Protocol/TSet.cs
Modified: thrift/trunk/lib/csharp/src/Protocol/TSet.cs
URL:
http://svn.apache.org/viewvc/thrift/trunk/lib/csharp/src/Protocol/TSet.cs?rev=1393368&r1=1393367&r2=1393368&view=diff
==============================================================================
--- thrift/trunk/lib/csharp/src/Protocol/TSet.cs (original)
+++ thrift/trunk/lib/csharp/src/Protocol/TSet.cs Wed Oct 3 09:25:52 2012
@@ -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; }