-Added support for deserializing IDictionary properties

This commit is contained in:
JamesNK
2011-08-03 01:53:49 +00:00
parent 44ab7f71df
commit d8b32dfdc4
2 changed files with 51 additions and 0 deletions
@@ -75,6 +75,10 @@ namespace Newtonsoft.Json.Serialization
{
CreatedType = ReflectionUtils.MakeGenericType(typeof(Dictionary<,>), keyType, valueType);
}
else if (UnderlyingType == typeof(IDictionary))
{
CreatedType = typeof (Dictionary<object, object>);
}
}
internal IWrappedDictionary CreateWrapper(object dictionary)