aboutsummaryrefslogtreecommitdiff
path: root/src/ProtoGen/FieldGeneratorBase.cs
diff options
context:
space:
mode:
authorJon Skeet <skeet@pobox.com>2008-11-13 22:29:48 +0000
committerJon Skeet <skeet@pobox.com>2008-11-13 22:29:48 +0000
commit1d131c98f058dc0b5e0ebef73602e09dc88fe075 (patch)
treee94ff4c7383c557902ec5eb63b8889dda24e3bd7 /src/ProtoGen/FieldGeneratorBase.cs
parentd6343be707cb6a067fe2b5ccc2efd7848072d17c (diff)
downloadprotobuf-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.cs10
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;
}
}