1
0
mirror of https://github.com/JKorf/CryptoExchange.Net synced 2026-02-16 14:13:46 +00:00

Fixed warning

This commit is contained in:
Jkorf 2026-01-12 14:30:09 +01:00
parent 3b2a85d210
commit 187ca6a4ef

View File

@ -20,6 +20,7 @@ namespace CryptoExchange.Net.Converters.SystemTextJson
_trueValue = trueValue;
}
/// <inheritdoc />
public override bool Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options)
{
if (reader.TokenType != JsonTokenType.Number)
@ -28,6 +29,7 @@ namespace CryptoExchange.Net.Converters.SystemTextJson
return reader.GetDecimal() == _trueValue;
}
/// <inheritdoc />
public override void Write(Utf8JsonWriter writer, bool value, JsonSerializerOptions options)
{
writer.WriteNumberValue(_trueValue);