diff options
author | csharptest <roger@csharptest.net> | 2011-08-13 18:22:30 -0500 |
---|---|---|
committer | rogerk <devnull@localhost> | 2011-08-13 18:22:30 -0500 |
commit | bde57ffc757f10c105fe6a80b60cbb81b9d72426 (patch) | |
tree | 31c6f505f3ccb074655af0f124e93c08f72814ff /src/ProtoGen/MessageGenerator.cs | |
parent | 5ce95b4b480f6a58a522e1326251859d0b363f10 (diff) | |
download | protobuf-bde57ffc757f10c105fe6a80b60cbb81b9d72426.tar.gz protobuf-bde57ffc757f10c105fe6a80b60cbb81b9d72426.tar.bz2 protobuf-bde57ffc757f10c105fe6a80b60cbb81b9d72426.zip |
Cleanup per review comments.
Diffstat (limited to 'src/ProtoGen/MessageGenerator.cs')
-rw-r--r-- | src/ProtoGen/MessageGenerator.cs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/ProtoGen/MessageGenerator.cs b/src/ProtoGen/MessageGenerator.cs index 2b852eb1..01d47ce2 100644 --- a/src/ProtoGen/MessageGenerator.cs +++ b/src/ProtoGen/MessageGenerator.cs @@ -247,7 +247,9 @@ namespace Google.ProtocolBuffers.ProtoGen foreach (FieldDescriptor fieldDescriptor in Descriptor.Fields)
{
if (Descriptor.File.CSharpOptions.ClsCompliance && GetFieldConstantName(fieldDescriptor).StartsWith("_"))
+ {
writer.WriteLine("[global::System.CLSCompliant(false)]");
+ }
// Rats: we lose the debug comment here :(
writer.WriteLine("public const int {0} = {1};", GetFieldConstantName(fieldDescriptor),
|