File tree Expand file tree Collapse file tree
Open.Serialization.Json.Newtonsoft
Open.Serialization.Json.System Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -19,6 +19,11 @@ internal static JsonSerializerSettings Options(
1919 . AddConverter ( JsonNullableDoubleConverter . Instance )
2020 . NormalizeDecimals ( ) ;
2121
22+ public static IJsonDeserialize < TValue > GetDeserializer < TValue > ( )
23+ => DeserializerOptions . GetSerializer < TValue > ( ) ;
24+ public static IJsonDeserialize GetDeserializer ( )
25+ => DeserializerOptions . GetSerializer ( ) ;
26+
2227 static readonly JsonSerializerSettings DeserializerOptions
2328 = Options ( ) . SetNullValueHandling ( NullValueHandling . Ignore ) ;
2429
Original file line number Diff line number Diff line change @@ -21,6 +21,10 @@ internal static JsonSerializerOptions Options(
2121 static readonly JsonSerializerOptions DeserializerOptions
2222 = Options ( ) . SetIgnoreNullValues ( ) ;
2323
24+ public static IJsonDeserialize < TValue > GetDeserializer < TValue > ( )
25+ => DeserializerOptions . GetSerializer < TValue > ( ) ;
26+ public static IJsonDeserialize GetDeserializer ( )
27+ => DeserializerOptions . GetSerializer ( ) ;
2428 public static TValue Deserialize < TValue > ( string value )
2529 => DeserializerOptions . Deserialize < TValue > ( value ) ;
2630 public static TValue Deserialize < TValue > ( ReadOnlySpan < byte > value )
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ public interface IJsonDeserialize : IDeserialize
44 {
55 }
66
7- public interface IJsonDeserialize < T > : IDeserialize < T >
7+ public interface IJsonDeserialize < out T > : IDeserialize < T >
88 {
99 }
1010}
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ public interface IJsonSerialize : ISerialize
44 {
55 }
66
7- public interface IJsonSerialize < T > : ISerialize < T >
7+ public interface IJsonSerialize < in T > : ISerialize < T >
88 {
99 }
1010}
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ public interface IJsonSerializeAsync : ISerializeAsync
44 {
55 }
66
7- public interface IJsonSerializeAsync < T > : ISerializeAsync < T >
7+ public interface IJsonSerializeAsync < in T > : ISerializeAsync < T >
88 {
99 }
1010}
Original file line number Diff line number Diff line change @@ -17,11 +17,11 @@ Part of the "Open" set of libraries.
1717 <RepositoryUrl >https://github.com/electricessence/Open.Serialization</RepositoryUrl >
1818 <RepositoryType >git</RepositoryType >
1919 <PackageTags >serialization json</PackageTags >
20- <Version >1.2.0 </Version >
20+ <Version >1.2.1 </Version >
2121 </PropertyGroup >
2222
2323 <ItemGroup >
24- <PackageReference Include =" Open.Serialization" Version =" 1.2.0 " />
24+ <PackageReference Include =" Open.Serialization" Version =" 1.2.1 " />
2525 </ItemGroup >
2626
2727</Project >
You can’t perform that action at this time.
0 commit comments