diff options
| author | nyanmisaka <nst799610810@gmail.com> | 2020-08-19 16:56:53 +0800 |
|---|---|---|
| committer | nyanmisaka <nst799610810@gmail.com> | 2020-08-19 16:56:53 +0800 |
| commit | aa75755480379e9497e82a4cb9410c267255c936 (patch) | |
| tree | 25a20af061fd45e90398161a8f82b45d14e7cdbb /MediaBrowser.Common/Json/Converters/JsonNonStringKeyDictionaryConverter.cs | |
| parent | 8165c3bb21a1ac4869dafa951f8a3ca3d21dda1e (diff) | |
| parent | 93fe595e5e9863874c1973e4f2d7f3c85549d3f9 (diff) | |
Merge remote-tracking branch 'upstream/master' into fonts
Diffstat (limited to 'MediaBrowser.Common/Json/Converters/JsonNonStringKeyDictionaryConverter.cs')
| -rw-r--r-- | MediaBrowser.Common/Json/Converters/JsonNonStringKeyDictionaryConverter.cs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/MediaBrowser.Common/Json/Converters/JsonNonStringKeyDictionaryConverter.cs b/MediaBrowser.Common/Json/Converters/JsonNonStringKeyDictionaryConverter.cs index 0a36e1cb2..8053461f0 100644 --- a/MediaBrowser.Common/Json/Converters/JsonNonStringKeyDictionaryConverter.cs +++ b/MediaBrowser.Common/Json/Converters/JsonNonStringKeyDictionaryConverter.cs @@ -25,7 +25,7 @@ namespace MediaBrowser.Common.Json.Converters /// <param name="typeToConvert">The type to convert.</param> /// <param name="options">The json serializer options.</param> /// <returns>Typed dictionary.</returns> - /// <exception cref="NotSupportedException">Not supported.</exception> + /// <exception cref="NotSupportedException">Dictionary key type not supported.</exception> public override IDictionary<TKey, TValue> Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { var convertedType = typeof(Dictionary<,>).MakeGenericType(typeof(string), typeToConvert.GenericTypeArguments[1]); @@ -72,7 +72,7 @@ namespace MediaBrowser.Common.Json.Converters { if (k != null) { - convertedDictionary[k.ToString()] = v; + convertedDictionary[k.ToString()] = v; } } |
