mirror of
https://github.com/JKorf/CryptoExchange.Net.git
synced 2026-08-21 13:23:07 +00:00
ReadString don't crash if not mapped
This commit is contained in:
@@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user