THRIFT-384. csharp: Fix handling of fields named "value"
authorDavid Reiss <dreiss@apache.org>
Thu, 19 Mar 2009 20:33:15 +0000 (20:33 +0000)
committerDavid Reiss <dreiss@apache.org>
Thu, 19 Mar 2009 20:33:15 +0000 (20:33 +0000)
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@756179 13f79535-47bb-0310-9956-ffa450edef68

compiler/cpp/src/generate/t_csharp_generator.cc

index df1d59c..9c073dc 100644 (file)
@@ -1510,7 +1510,7 @@ void t_csharp_generator::generate_property(ofstream& out, t_field* tfield, bool
     indent(out) << "set" << endl;
     scope_up(out);
     indent(out) << "__isset." << tfield->get_name() << " = true;" << endl;
-    indent(out) << tfield->get_name() << " = value;" << endl;
+    indent(out) << "this." << tfield->get_name() << " = value;" << endl;
     scope_down(out);
     scope_down(out);
     out << endl;