mirror of
https://github.com/JKorf/CryptoExchange.Net
synced 2025-06-07 16:06:15 +00:00
Fixed error
This commit is contained in:
parent
4f2d7abc7e
commit
ad1bdd9a3f
@ -61,7 +61,7 @@ namespace CryptoExchange.Net.Converters
|
|||||||
|
|
||||||
if (string.IsNullOrWhiteSpace(stringValue)
|
if (string.IsNullOrWhiteSpace(stringValue)
|
||||||
|| stringValue == "-1"
|
|| stringValue == "-1"
|
||||||
|| (double.TryParse(stringValue, out var doubleValue) && doubleValue == 0))
|
|| (double.TryParse(stringValue, out var doubleVal) && doubleVal == 0))
|
||||||
{
|
{
|
||||||
return objectType == typeof(DateTime) ? default(DateTime) : null;
|
return objectType == typeof(DateTime) ? default(DateTime) : null;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user