1
0
mirror of https://github.com/JKorf/CryptoExchange.Net.git synced 2026-08-20 12:53:02 +00:00

Fix in baseconverter, added parameters for request to debug logging

This commit is contained in:
JKorf
2018-05-07 09:59:06 +02:00
parent ebce7d675d
commit 3ed48cd289
3 changed files with 9 additions and 3 deletions
@@ -35,7 +35,7 @@ namespace CryptoExchange.Net.Converters
var lowerResult = Mapping.SingleOrDefault(m => m.Value.ToLower() == value.ToLower());
if (!lowerResult.Equals(default(KeyValuePair<T, string>)))
return lowerResult.Value;
return lowerResult.Key;
Debug.WriteLine($"Cannot map enum. Type: {typeof(T)}, Value: {value}");
return null;