From: David Reiss Date: Tue, 18 Mar 2008 18:22:43 +0000 (+0000) Subject: Fixes for the C# library. X-Git-Tag: 0.2.0~897 X-Git-Url: https://source.supwisdom.com/gerrit/gitweb?a=commitdiff_plain;h=c9d06ee2ddf02d7ae93c13d3121fb7bab88d22dc;p=common%2Fthrift.git Fixes for the C# library. git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@665575 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/lib/csharp/src/Protocol/TField.cs b/lib/csharp/src/Protocol/TField.cs index c2942535..93c0738a 100644 --- a/lib/csharp/src/Protocol/TField.cs +++ b/lib/csharp/src/Protocol/TField.cs @@ -19,6 +19,7 @@ namespace Thrift.Protocol public struct TField { public TField(string name, TType type, short id) + :this() { Name = name; Type = type; diff --git a/lib/csharp/src/Protocol/TList.cs b/lib/csharp/src/Protocol/TList.cs index eb307ce2..ccce522b 100644 --- a/lib/csharp/src/Protocol/TList.cs +++ b/lib/csharp/src/Protocol/TList.cs @@ -19,6 +19,7 @@ namespace Thrift.Protocol public struct TList { public TList(TType elementType, int count) + :this() { ElementType = elementType; Count = count; diff --git a/lib/csharp/src/Protocol/TMap.cs b/lib/csharp/src/Protocol/TMap.cs index 53c78334..a71e52a9 100644 --- a/lib/csharp/src/Protocol/TMap.cs +++ b/lib/csharp/src/Protocol/TMap.cs @@ -19,6 +19,7 @@ namespace Thrift.Protocol public struct TMap { public TMap(TType keyType, TType valueType, int count) + :this() { KeyType = keyType; ValueType = valueType; diff --git a/lib/csharp/src/Protocol/TMessage.cs b/lib/csharp/src/Protocol/TMessage.cs index 92176f36..15dfce03 100644 --- a/lib/csharp/src/Protocol/TMessage.cs +++ b/lib/csharp/src/Protocol/TMessage.cs @@ -19,6 +19,7 @@ namespace Thrift.Protocol public struct TMessage { public TMessage(string name, TMessageType type, int seqid) + :this() { Name = name; Type = type; diff --git a/lib/csharp/src/Protocol/TSet.cs b/lib/csharp/src/Protocol/TSet.cs index 0dea8cb5..0bfc29e4 100644 --- a/lib/csharp/src/Protocol/TSet.cs +++ b/lib/csharp/src/Protocol/TSet.cs @@ -19,6 +19,7 @@ namespace Thrift.Protocol public struct TSet { public TSet(TType elementType, int count) + :this() { ElementType = elementType; Count = count; diff --git a/lib/csharp/src/Protocol/TStruct.cs b/lib/csharp/src/Protocol/TStruct.cs index 38336957..62f60fdb 100644 --- a/lib/csharp/src/Protocol/TStruct.cs +++ b/lib/csharp/src/Protocol/TStruct.cs @@ -18,6 +18,7 @@ namespace Thrift.Protocol public struct TStruct { public TStruct(string name) + :this() { Name = name; }