commit | 1f804a80c2d677b8d7aa3f60f6146b7246a55edf | [log] [tgz] |
---|---|---|
author | David Reiss <dreiss@apache.org> | Thu Mar 19 20:33:15 2009 +0000 |
committer | David Reiss <dreiss@apache.org> | Thu Mar 19 20:33:15 2009 +0000 |
tree | 8264ac4aba843a5efba0fba5c24922f56b1fe4ce | |
parent | d815c218c8c48ab7bd930aa0ea8913bc9b2ce872 [diff] |
THRIFT-384. csharp: Fix handling of fields named "value" git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@756179 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/compiler/cpp/src/generate/t_csharp_generator.cc b/compiler/cpp/src/generate/t_csharp_generator.cc index df1d59c..9c073dc 100644 --- a/compiler/cpp/src/generate/t_csharp_generator.cc +++ b/compiler/cpp/src/generate/t_csharp_generator.cc
@@ -1510,7 +1510,7 @@ 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;