Author: bryanduxbury
Date: Thu Jul 2 20:15:05 2009
New Revision: 790730
URL: http://svn.apache.org/viewvc?rev=790730&view=rev
Log:
THRIFT-204. csharp: C# Partial Classes
C# structs are now generated as partial classes so they can be extended without
wrapping.
Modified:
incubator/thrift/trunk/compiler/cpp/src/generate/t_csharp_generator.cc
Modified: incubator/thrift/trunk/compiler/cpp/src/generate/t_csharp_generator.cc
URL:
http://svn.apache.org/viewvc/incubator/thrift/trunk/compiler/cpp/src/generate/t_csharp_generator.cc?rev=790730&r1=790729&r2=790730&view=diff
==============================================================================
--- incubator/thrift/trunk/compiler/cpp/src/generate/t_csharp_generator.cc
(original)
+++ incubator/thrift/trunk/compiler/cpp/src/generate/t_csharp_generator.cc Thu
Jul 2 20:15:05 2009
@@ -410,7 +410,7 @@
indent(out) << "[Serializable]" << endl;
bool is_final = (tstruct->annotations_.find("final") !=
tstruct->annotations_.end());
- indent(out) << "public " << (is_final ? "sealed " : "") << "class " <<
tstruct->get_name() << " : ";
+ indent(out) << "public " << (is_final ? "sealed " : "") << "partial class "
<< tstruct->get_name() << " : ";
if (is_exception) {
out << "Exception, ";