1
0
mirror of https://github.com/JKorf/CryptoExchange.Net synced 2025-08-28 19:21:32 +00:00

Added check for dictionary in object validation

This commit is contained in:
JKorf 2018-08-07 08:33:37 +02:00
parent 45fdfbc062
commit d3457952e5

View File

@ -211,7 +211,9 @@ namespace CryptoExchange.Net
try
{
if (obj is JObject o)
{
CheckObject(typeof(T), o);
}
else
{
var ary = (JArray)obj;
@ -253,6 +255,9 @@ namespace CryptoExchange.Net
// If type has a custom JsonConverter we assume this will handle property mapping
return;
if (type.IsGenericType && type.GetGenericTypeDefinition() == typeof(Dictionary<,>))
return;
bool isDif = false;
var properties = new List<string>();
var props = type.GetProperties();