mirror of
https://github.com/JKorf/CryptoExchange.Net
synced 2026-02-16 14:13:46 +00:00
Fixed warning
This commit is contained in:
parent
3b2a85d210
commit
187ca6a4ef
@ -20,6 +20,7 @@ namespace CryptoExchange.Net.Converters.SystemTextJson
|
|||||||
_trueValue = trueValue;
|
_trueValue = trueValue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// <inheritdoc />
|
||||||
public override bool Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options)
|
public override bool Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options)
|
||||||
{
|
{
|
||||||
if (reader.TokenType != JsonTokenType.Number)
|
if (reader.TokenType != JsonTokenType.Number)
|
||||||
@ -28,6 +29,7 @@ namespace CryptoExchange.Net.Converters.SystemTextJson
|
|||||||
return reader.GetDecimal() == _trueValue;
|
return reader.GetDecimal() == _trueValue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// <inheritdoc />
|
||||||
public override void Write(Utf8JsonWriter writer, bool value, JsonSerializerOptions options)
|
public override void Write(Utf8JsonWriter writer, bool value, JsonSerializerOptions options)
|
||||||
{
|
{
|
||||||
writer.WriteNumberValue(_trueValue);
|
writer.WriteNumberValue(_trueValue);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user