diff --git a/csharp/src/Google.Protobuf/JsonParser.cs b/csharp/src/Google.Protobuf/JsonParser.cs index 6db3b8e072..ef9de22820 100644 --- a/csharp/src/Google.Protobuf/JsonParser.cs +++ b/csharp/src/Google.Protobuf/JsonParser.cs @@ -774,8 +774,7 @@ namespace Google.Protobuf { var jsonOptions = value.GetOptions()?.GetExtension( Pb.Enumvalue.JsonEnumvalueOptionsExtensions.Json); - if (jsonOptions != null && jsonOptions.HasString && - !map.ContainsKey(jsonOptions.String)) + if (jsonOptions != null && jsonOptions.HasString) { map[jsonOptions.String] = value; }