diff options
author | Jon Skeet <skeet@pobox.com> | 2009-06-25 10:51:31 +0100 |
---|---|---|
committer | Jon Skeet <skeet@pobox.com> | 2009-06-25 10:51:31 +0100 |
commit | 5cb5d782b019f2f820efbb2fce7146cea2fa35dd (patch) | |
tree | 50846cb9aed9bc1ea274dcf0909b5a73d7b4f5f6 /src/ProtoGen/MessageGenerator.cs | |
parent | a22663eda972668c9618989de2f564a13ef825ab (diff) | |
download | protobuf-5cb5d782b019f2f820efbb2fce7146cea2fa35dd.tar.gz protobuf-5cb5d782b019f2f820efbb2fce7146cea2fa35dd.tar.bz2 protobuf-5cb5d782b019f2f820efbb2fce7146cea2fa35dd.zip |
Workaround for Mono bug 516379
Diffstat (limited to 'src/ProtoGen/MessageGenerator.cs')
-rw-r--r-- | src/ProtoGen/MessageGenerator.cs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/ProtoGen/MessageGenerator.cs b/src/ProtoGen/MessageGenerator.cs index 6dc786c1..51ca2fa4 100644 --- a/src/ProtoGen/MessageGenerator.cs +++ b/src/ProtoGen/MessageGenerator.cs @@ -349,11 +349,11 @@ namespace Google.ProtocolBuffers.ProtoGen { writer.WriteLine("}"); writer.WriteLine(); writer.WriteLine("public override pbd::MessageDescriptor DescriptorForType {"); - writer.WriteLine(" get {{ return {0}.Descriptor; }}", ClassName); + writer.WriteLine(" get {{ return {0}.Descriptor; }}", FullClassName); writer.WriteLine("}"); writer.WriteLine(); writer.WriteLine("public override {0} DefaultInstanceForType {{", ClassName); - writer.WriteLine(" get {{ return {0}.DefaultInstance; }}", ClassName); + writer.WriteLine(" get {{ return {0}.DefaultInstance; }}", FullClassName); writer.WriteLine("}"); writer.WriteLine(); @@ -386,7 +386,7 @@ namespace Google.ProtocolBuffers.ProtoGen { // Optimization: If other is the default instance, we know none of its // fields are set so we can skip the merge. writer.Indent(); - writer.WriteLine("if (other == {0}.DefaultInstance) return this;", ClassName); + writer.WriteLine("if (other == {0}.DefaultInstance) return this;", FullClassName); foreach (FieldDescriptor field in Descriptor.Fields) { SourceGenerators.CreateFieldGenerator(field).GenerateMergingCode(writer); } |