forked from dotnet/runtime
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Removed need for Nullable converters in Json serialization (dotnet/co…
…refx#35754) Added support for Nullable<T> properties where a Nullable converter is no longer required. Enum converter has generic constraint to `Enum` type. Commit migrated from dotnet/corefx@b0751dc
- Loading branch information
1 parent
c1f6d75
commit f094cb0
Showing
27 changed files
with
387 additions
and
806 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 13 additions & 0 deletions
13
...stem.Text.Json/src/System/Text/Json/Serialization/Converters/DefaultConvertersOfTValue.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
// Licensed to the .NET Foundation under one or more agreements. | ||
// The .NET Foundation licenses this file to you under the MIT license. | ||
// See the LICENSE file in the project root for more information. | ||
|
||
using System.Text.Json.Serialization.Policies; | ||
|
||
namespace System.Text.Json.Serialization.Converters | ||
{ | ||
internal static class DefaultConverters<TValue> | ||
{ | ||
internal static readonly JsonValueConverter<TValue> s_converter = (JsonValueConverter<TValue>)DefaultConverters.Create(typeof(TValue)); | ||
} | ||
} |
106 changes: 0 additions & 106 deletions
106
...es/System.Text.Json/src/System/Text/Json/Serialization/Converters/DefaultEnumConverter.cs
This file was deleted.
Oops, something went wrong.
33 changes: 0 additions & 33 deletions
33
...t.Json/src/System/Text/Json/Serialization/Converters/JsonValueConverterBooleanNullable.cs
This file was deleted.
Oops, something went wrong.
35 changes: 0 additions & 35 deletions
35
...Text.Json/src/System/Text/Json/Serialization/Converters/JsonValueConverterByteNullable.cs
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.