-Added ReadAsInt32 to JsonReader
-Improved performance by using an enum rather than a type check to test contract type
This commit is contained in:
@@ -60,6 +60,8 @@ namespace Newtonsoft.Json.Serialization
|
||||
public JsonDictionaryContract(Type underlyingType)
|
||||
: base(underlyingType)
|
||||
{
|
||||
ContractType = JsonContractType.Dictionary;
|
||||
|
||||
Type keyType;
|
||||
Type valueType;
|
||||
if (ReflectionUtils.ImplementsGenericDefinition(underlyingType, typeof(IDictionary<,>), out _genericCollectionDefinitionType))
|
||||
|
||||
Reference in New Issue
Block a user