THRIFT-2417: Make union types partial classes
authorJake Luciani <jake@apache.org>
Thu, 20 Mar 2014 14:30:43 +0000 (10:30 -0400)
committerJake Luciani <jake@apache.org>
Thu, 20 Mar 2014 14:30:43 +0000 (10:30 -0400)
Patch by Jake Luciani, Reviewed by Jake Farrell

compiler/cpp/src/generate/t_csharp_generator.cc

index d9659e4..5d6fb16 100644 (file)
@@ -1054,7 +1054,7 @@ void t_csharp_generator::generate_csharp_union_definition(std::ofstream& out, t_
   // Let's define the class first
   start_csharp_namespace(out);
 
-  indent(out) << "public abstract class " << tunion->get_name() << " : TAbstractBase {" << endl;
+  indent(out) << "public abstract partial class " << tunion->get_name() << " : TAbstractBase {" << endl;
 
   indent_up();