You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@thrift.apache.org by ro...@apache.org on 2010/11/10 22:19:38 UTC

svn commit: r1033715 - /thrift/trunk/compiler/cpp/src/generate/t_csharp_generator.cc

Author: roger
Date: Wed Nov 10 21:19:36 2010
New Revision: 1033715

URL: http://svn.apache.org/viewvc?rev=1033715&view=rev
Log:
THRIFT-992 add underline for fields

Modified:
    thrift/trunk/compiler/cpp/src/generate/t_csharp_generator.cc

Modified: thrift/trunk/compiler/cpp/src/generate/t_csharp_generator.cc
URL: http://svn.apache.org/viewvc/thrift/trunk/compiler/cpp/src/generate/t_csharp_generator.cc?rev=1033715&r1=1033714&r2=1033715&view=diff
==============================================================================
--- thrift/trunk/compiler/cpp/src/generate/t_csharp_generator.cc (original)
+++ thrift/trunk/compiler/cpp/src/generate/t_csharp_generator.cc Wed Nov 10 21:19:36 2010
@@ -456,7 +456,7 @@ void t_csharp_generator::generate_csharp
       t = ((t_typedef*)t)->get_type();
     }
     if ((*m_iter)->get_value() != NULL) {
-      print_const_value(out, "this." + (*m_iter)->get_name(), t, (*m_iter)->get_value(), true, true);
+      print_const_value(out, "this._" + (*m_iter)->get_name(), t, (*m_iter)->get_value(), true, true);
     }
   }