Issue 49: Generated nested static Types class should be partial

pull/288/head
csharptest 12 years ago committed by rogerk
parent fb607d6fa6
commit f96f5ae58a
  1. 2
      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);

Loading…
Cancel
Save