diff options
author | Jon Skeet <jonskeet@google.com> | 2015-08-04 15:58:39 +0100 |
---|---|---|
committer | Jon Skeet <jonskeet@google.com> | 2015-08-04 15:58:39 +0100 |
commit | 811fc89f0eb036d95653f5fed4b0ffea292ce791 (patch) | |
tree | e1e724bda1b599c036f7326974829d1bf79a6951 /csharp/src/Google.Protobuf/Reflection/EnumValueDescriptor.cs | |
parent | dc80689af3951d078cb556588eece89dd6860c91 (diff) | |
download | protobuf-811fc89f0eb036d95653f5fed4b0ffea292ce791.tar.gz protobuf-811fc89f0eb036d95653f5fed4b0ffea292ce791.tar.bz2 protobuf-811fc89f0eb036d95653f5fed4b0ffea292ce791.zip |
Document everything, and turn on errors if we fail to document anything in the future.
Diffstat (limited to 'csharp/src/Google.Protobuf/Reflection/EnumValueDescriptor.cs')
-rw-r--r-- | csharp/src/Google.Protobuf/Reflection/EnumValueDescriptor.cs | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/csharp/src/Google.Protobuf/Reflection/EnumValueDescriptor.cs b/csharp/src/Google.Protobuf/Reflection/EnumValueDescriptor.cs index 29833c4a..b212ce96 100644 --- a/csharp/src/Google.Protobuf/Reflection/EnumValueDescriptor.cs +++ b/csharp/src/Google.Protobuf/Reflection/EnumValueDescriptor.cs @@ -51,11 +51,20 @@ namespace Google.Protobuf.Reflection } internal EnumValueDescriptorProto Proto { get { return proto; } } - + + /// <summary> + /// Returns the name of the enum value described by this object. + /// </summary> public override string Name { get { return proto.Name; } } + /// <summary> + /// Returns the number associated with this enum value. + /// </summary> public int Number { get { return Proto.Number; } } + /// <summary> + /// Returns the enum descriptor that this value is part of. + /// </summary> public EnumDescriptor EnumDescriptor { get { return enumDescriptor; } } } }
\ No newline at end of file |