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:
parent
45fdfbc062
commit
d3457952e5
@ -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();
|
||||
|
Loading…
x
Reference in New Issue
Block a user