mirror of
https://github.com/JKorf/CryptoExchange.Net
synced 2025-06-10 01:16:24 +00:00
ReadString don't crash if not mapped
This commit is contained in:
parent
525ae41245
commit
9ecb8cc7a7
@ -43,7 +43,7 @@ namespace CryptoExchange.Net.Converters
|
|||||||
|
|
||||||
public T ReadString(string data)
|
public T ReadString(string data)
|
||||||
{
|
{
|
||||||
return Mapping.Single(v => v.Value == data).Key;
|
return Mapping.SingleOrDefault(v => v.Value == data).Key;
|
||||||
}
|
}
|
||||||
|
|
||||||
public override bool CanConvert(Type objectType)
|
public override bool CanConvert(Type objectType)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user