aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcsharptest <roger@csharptest.net>2012-10-10 15:30:47 -0500
committerrogerk <devnull@localhost>2012-10-10 15:30:47 -0500
commitf96f5ae58a891684d0981c85c0139a8972819c19 (patch)
tree7c75b8ad4b7afda990deb0d24a6ace14d61240c5
parentfb607d6fa60f8e5752fe2dabe5de62d9dd05b67a (diff)
downloadprotobuf-f96f5ae58a891684d0981c85c0139a8972819c19.tar.gz
protobuf-f96f5ae58a891684d0981c85c0139a8972819c19.tar.bz2
protobuf-f96f5ae58a891684d0981c85c0139a8972819c19.zip
Issue 49: Generated nested static Types class should be partial
-rw-r--r--src/ProtoGen/MessageGenerator.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ProtoGen/MessageGenerator.cs b/src/ProtoGen/MessageGenerator.cs
index 119bd045..9529ff13 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);