diff --git a/csharp/src/Google.Protobuf/Reflection/FieldDescriptor.cs b/csharp/src/Google.Protobuf/Reflection/FieldDescriptor.cs index 7324e3dfc638..0ba16cf96f20 100644 --- a/csharp/src/Google.Protobuf/Reflection/FieldDescriptor.cs +++ b/csharp/src/Google.Protobuf/Reflection/FieldDescriptor.cs @@ -45,7 +45,6 @@ public sealed class FieldDescriptor : DescriptorBase, IComparable @@ -70,6 +69,11 @@ public sealed class FieldDescriptor : DescriptorBase, IComparable public string JsonName { get; } + /// + /// The name of the property in the ContainingType.ClrType class. + /// + public string PropertyName { get; } + /// /// Indicates whether this field supports presence, either implicitly (e.g. due to it being a message /// type field) or explicitly via Has/Clear members. If this returns true, it is safe to call @@ -123,7 +127,7 @@ public sealed class FieldDescriptor : DescriptorBase, IComparable