diff options
Diffstat (limited to 'src/ProtocolBuffers/GeneratedExtensionLite.cs')
-rw-r--r-- | src/ProtocolBuffers/GeneratedExtensionLite.cs | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/ProtocolBuffers/GeneratedExtensionLite.cs b/src/ProtocolBuffers/GeneratedExtensionLite.cs index faca1b09..393b6d43 100644 --- a/src/ProtocolBuffers/GeneratedExtensionLite.cs +++ b/src/ProtocolBuffers/GeneratedExtensionLite.cs @@ -74,6 +74,18 @@ namespace Google.ProtocolBuffers this.defaultValue = defaultValue;
}
+ public string Name
+ {
+ get
+ {
+ string name = fullName;
+ int offset = name.LastIndexOf('.');
+ if (offset >= 0)
+ name = name.Substring(offset);
+ return name;
+ }
+ }
+
public string FullName
{
get { return fullName; }
|