mirror of
https://github.com/JKorf/CryptoExchange.Net.git
synced 2026-08-11 16:32:57 +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)
|
||||
{
|
||||
return Mapping.Single(v => v.Value == data).Key;
|
||||
return Mapping.SingleOrDefault(v => v.Value == data).Key;
|
||||
}
|
||||
|
||||
public override bool CanConvert(Type objectType)
|
||||
|
||||
Reference in New Issue
Block a user