Commit f96f5ae5 authored by csharptest's avatar csharptest Committed by rogerk

Issue 49: Generated nested static Types class should be partial

parent fb607d6f
...@@ -242,7 +242,7 @@ namespace Google.ProtocolBuffers.ProtoGen ...@@ -242,7 +242,7 @@ namespace Google.ProtocolBuffers.ProtoGen
writer.WriteLine("[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]"); writer.WriteLine("[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]");
writer.WriteLine("[global::System.CodeDom.Compiler.GeneratedCodeAttribute(\"{0}\", \"{1}\")]", writer.WriteLine("[global::System.CodeDom.Compiler.GeneratedCodeAttribute(\"{0}\", \"{1}\")]",
GetType().Assembly.GetName().Name, GetType().Assembly.GetName().Version); GetType().Assembly.GetName().Name, GetType().Assembly.GetName().Version);
writer.WriteLine("public static class Types {"); writer.WriteLine("public static partial class Types {");
writer.Indent(); writer.Indent();
WriteChildren(writer, null, Descriptor.EnumTypes); WriteChildren(writer, null, Descriptor.EnumTypes);
WriteChildren(writer, null, Descriptor.NestedTypes); WriteChildren(writer, null, Descriptor.NestedTypes);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment