diff options
author | Jon Skeet <skeet@pobox.com> | 2008-11-13 22:29:48 +0000 |
---|---|---|
committer | Jon Skeet <skeet@pobox.com> | 2008-11-13 22:29:48 +0000 |
commit | 1d131c98f058dc0b5e0ebef73602e09dc88fe075 (patch) | |
tree | e94ff4c7383c557902ec5eb63b8889dda24e3bd7 /src/ProtoGen/FieldGeneratorBase.cs | |
parent | d6343be707cb6a067fe2b5ccc2efd7848072d17c (diff) | |
download | protobuf-1d131c98f058dc0b5e0ebef73602e09dc88fe075.tar.gz protobuf-1d131c98f058dc0b5e0ebef73602e09dc88fe075.tar.bz2 protobuf-1d131c98f058dc0b5e0ebef73602e09dc88fe075.zip |
New options now work fine.
Diffstat (limited to 'src/ProtoGen/FieldGeneratorBase.cs')
-rw-r--r-- | src/ProtoGen/FieldGeneratorBase.cs | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/src/ProtoGen/FieldGeneratorBase.cs b/src/ProtoGen/FieldGeneratorBase.cs index a6e086ed..d20745a4 100644 --- a/src/ProtoGen/FieldGeneratorBase.cs +++ b/src/ProtoGen/FieldGeneratorBase.cs @@ -73,17 +73,9 @@ namespace Google.ProtocolBuffers.ProtoGen { } } - /// <summary> - /// Usually the same as CapitalizedName, except when the enclosing type has the same name, - /// in which case an underscore is appended. - /// </summary> protected string PropertyName { get { - string ret = CapitalizedName; - if (ret == Descriptor.ContainingType.Name) { - ret += "_"; - } - return ret; + return Descriptor.CSharpOptions.PropertyName; } } |