aboutsummaryrefslogtreecommitdiffhomepage
path: root/csharp/ProtocolBuffers/Descriptors/EnumValueDescriptor.cs
diff options
context:
space:
mode:
Diffstat (limited to 'csharp/ProtocolBuffers/Descriptors/EnumValueDescriptor.cs')
-rw-r--r--csharp/ProtocolBuffers/Descriptors/EnumValueDescriptor.cs8
1 files changed, 8 insertions, 0 deletions
diff --git a/csharp/ProtocolBuffers/Descriptors/EnumValueDescriptor.cs b/csharp/ProtocolBuffers/Descriptors/EnumValueDescriptor.cs
index 48b3fb5c..faa83fd4 100644
--- a/csharp/ProtocolBuffers/Descriptors/EnumValueDescriptor.cs
+++ b/csharp/ProtocolBuffers/Descriptors/EnumValueDescriptor.cs
@@ -2,6 +2,14 @@
namespace Google.ProtocolBuffers.Descriptors {
public class EnumValueDescriptor {
+
+ internal EnumValueDescriptor(DescriptorProtos.EnumValueDescriptorProto proto,
+ FileDescriptor file,
+ EnumDescriptor parent,
+ int index) {
+ enumDescriptor = parent;
+ }
+
private EnumDescriptor enumDescriptor;
public int Number {