From 2bf90780d451ca9c6f7a0e2082009a5f409932af Mon Sep 17 00:00:00 2001 From: Jake Luciani Date: Thu, 20 Mar 2014 10:30:43 -0400 Subject: [PATCH] THRIFT-2417: Make union types partial classes Patch by Jake Luciani, Reviewed by Jake Farrell --- 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 d9659e46..5d6fb16f 100644 --- a/compiler/cpp/src/generate/t_csharp_generator.cc +++ b/compiler/cpp/src/generate/t_csharp_generator.cc @@ -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(); -- 2.17.1