From f96f5ae58a891684d0981c85c0139a8972819c19 Mon Sep 17 00:00:00 2001 From: csharptest Date: Wed, 10 Oct 2012 15:30:47 -0500 Subject: [PATCH] Issue 49: Generated nested static Types class should be partial --- src/ProtoGen/MessageGenerator.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ProtoGen/MessageGenerator.cs b/src/ProtoGen/MessageGenerator.cs index 119bd045e1..9529ff130e 100644 --- a/src/ProtoGen/MessageGenerator.cs +++ b/src/ProtoGen/MessageGenerator.cs @@ -242,7 +242,7 @@ namespace Google.ProtocolBuffers.ProtoGen writer.WriteLine("[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]"); writer.WriteLine("[global::System.CodeDom.Compiler.GeneratedCodeAttribute(\"{0}\", \"{1}\")]", GetType().Assembly.GetName().Name, GetType().Assembly.GetName().Version); - writer.WriteLine("public static class Types {"); + writer.WriteLine("public static partial class Types {"); writer.Indent(); WriteChildren(writer, null, Descriptor.EnumTypes); WriteChildren(writer, null, Descriptor.NestedTypes);