diff options
| author | Bond-009 <bond.009@outlook.com> | 2021-05-06 23:33:41 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-05-06 23:33:41 +0200 |
| commit | a4a3f598af92c7e62a920c4a2eb4f89081c13648 (patch) | |
| tree | 3c1ac92e2d348aaae53315c6a4caa02fbd7ba0d9 /MediaBrowser.Common/Json/Converters/JsonNullableStructConverterFactory.cs | |
| parent | ad1d9d9a23c4bff7a485a61fe41639a7d1b3491e (diff) | |
| parent | 4b9a64c18cff58938dab0c0770147a5e48c833f9 (diff) | |
Merge pull request #5982 from Bond-009/nullable
Diffstat (limited to 'MediaBrowser.Common/Json/Converters/JsonNullableStructConverterFactory.cs')
| -rw-r--r-- | MediaBrowser.Common/Json/Converters/JsonNullableStructConverterFactory.cs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/MediaBrowser.Common/Json/Converters/JsonNullableStructConverterFactory.cs b/MediaBrowser.Common/Json/Converters/JsonNullableStructConverterFactory.cs index d5b54e3ca..e2a3d798a 100644 --- a/MediaBrowser.Common/Json/Converters/JsonNullableStructConverterFactory.cs +++ b/MediaBrowser.Common/Json/Converters/JsonNullableStructConverterFactory.cs @@ -18,10 +18,10 @@ namespace MediaBrowser.Common.Json.Converters } /// <inheritdoc /> - public override JsonConverter CreateConverter(Type typeToConvert, JsonSerializerOptions options) + public override JsonConverter? CreateConverter(Type typeToConvert, JsonSerializerOptions options) { var structType = typeToConvert.GenericTypeArguments[0]; - return (JsonConverter)Activator.CreateInstance(typeof(JsonNullableStructConverter<>).MakeGenericType(structType)); + return (JsonConverter?)Activator.CreateInstance(typeof(JsonNullableStructConverter<>).MakeGenericType(structType)); } } -}
\ No newline at end of file +} |
