commit | d831a21773d789fae1b1d0b52b3d6378f377b8b1 | [log] [tgz] |
---|---|---|
author | David Reiss <dreiss@apache.org> | 周五 2月 13 03:09:52 2009 +0000 |
committer | David Reiss <dreiss@apache.org> | 周五 2月 13 03:09:52 2009 +0000 |
tree | 2c1351cebde6a104134c49066435dcfb6f4cabc5 | |
parent | 067c9aff285f3922d3e13b46ca52e4ec8c68b586 [diff] [blame] |
THRIFT-309. Make Thrift's C# mapping .NET 2.0 (Mono 1.2.4) compatible git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@743963 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/lib/csharp/src/Protocol/TStruct.cs b/lib/csharp/src/Protocol/TStruct.cs index 62f60fd..1a7d572 100644 --- a/lib/csharp/src/Protocol/TStruct.cs +++ b/lib/csharp/src/Protocol/TStruct.cs
@@ -17,16 +17,18 @@ { public struct TStruct { + private string name; + public TStruct(string name) :this() { - Name = name; + this.name = name; } public string Name { - get; - set; + get { return name; } + set { name = value; } } } }