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

Added nullable to type check of baseconverter

This commit is contained in:
JKorf
2018-06-25 08:44:01 +02:00
parent 6197b6e93b
commit e3d58c2d25
2 changed files with 3 additions and 2 deletions
@@ -48,7 +48,8 @@ namespace CryptoExchange.Net.Converters
public override bool CanConvert(Type objectType)
{
return objectType == typeof(T);
// Check if it is type, or nullable of type
return objectType == typeof(T) || Nullable.GetUnderlyingType(objectType) == typeof(T);
}
}
}