From 281d9dacb6d6ff20630e0fabb98384d91ea55d17 Mon Sep 17 00:00:00 2001 From: Bryan Duxbury Date: Thu, 2 Jul 2009 20:15:05 +0000 Subject: [PATCH] THRIFT-204. csharp: C# Partial Classes C# structs are now generated as partial classes so they can be extended without wrapping. git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@790730 13f79535-47bb-0310-9956-ffa450edef68 --- compiler/cpp/src/generate/t_csharp_generator.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler/cpp/src/generate/t_csharp_generator.cc b/compiler/cpp/src/generate/t_csharp_generator.cc index 5a910eab..96c0f6ea 100644 --- a/compiler/cpp/src/generate/t_csharp_generator.cc +++ b/compiler/cpp/src/generate/t_csharp_generator.cc @@ -410,7 +410,7 @@ void t_csharp_generator::generate_csharp_struct_definition(ofstream &out, t_stru 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, "; -- 2.17.1