You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@thrift.apache.org by he...@apache.org on 2012/10/03 11:25:52 UTC

svn commit: r1393368 - /thrift/trunk/lib/csharp/src/Protocol/TSet.cs

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; }