1
0
mirror of https://github.com/JKorf/CryptoExchange.Net.git synced 2026-08-21 13:23:07 +00:00

Nullability, updated version

This commit is contained in:
Jkorf
2020-12-10 15:21:10 +01:00
parent dd06f48fc1
commit 7a54625bb5
12 changed files with 66 additions and 31 deletions
@@ -28,9 +28,9 @@ namespace CryptoExchange.Net.Converters
}
/// <inheritdoc />
public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer)
public override void WriteJson(JsonWriter writer, object? value, JsonSerializer serializer)
{
var stringValue = GetValue((T) value);
var stringValue = value == null? null: GetValue((T) value);
if (quotes)
writer.WriteValue(stringValue);
else
@@ -38,7 +38,7 @@ namespace CryptoExchange.Net.Converters
}
/// <inheritdoc />
public override object? ReadJson(JsonReader reader, Type objectType, object existingValue, JsonSerializer serializer)
public override object? ReadJson(JsonReader reader, Type objectType, object? existingValue, JsonSerializer serializer)
{
if (reader.Value == null)
return null;