This is a placeholder issue to expose the internal JsonSerializer mechanism for supporting non-string primitives as dictionary keys. This will allow custom (user-provided) converters to handle them. This involves making these two virtual methods public:
|
internal virtual T ReadWithQuotes(ref Utf8JsonReader reader) |
|
=> throw new InvalidOperationException(); |
|
|
|
internal virtual void WriteWithQuotes(Utf8JsonWriter writer, [DisallowNull] T value, JsonSerializerOptions options, ref WriteStack state) |
|
=> throw new InvalidOperationException(); |
This is a placeholder issue to expose the internal
JsonSerializermechanism for supporting non-string primitives as dictionary keys. This will allow custom (user-provided) converters to handle them. This involves making these two virtual methodspublic:runtime/src/libraries/System.Text.Json/src/System/Text/Json/Serialization/JsonConverterOfT.cs
Lines 542 to 546 in cbc6aa6