Fixed a typo in CamelCasePropertyNamesContractResolver (#3013)
This commit is contained in:
@@ -66,7 +66,7 @@ namespace Newtonsoft.Json.Serialization
|
||||
throw new ArgumentNullException(nameof(type));
|
||||
}
|
||||
|
||||
// for backwards compadibility the CamelCasePropertyNamesContractResolver shares contracts between instances
|
||||
// for backwards compatibility the CamelCasePropertyNamesContractResolver shares contracts between instances
|
||||
StructMultiKey<Type, Type> key = new StructMultiKey<Type, Type>(GetType(), type);
|
||||
Dictionary<StructMultiKey<Type, Type>, JsonContract>? cache = _contractCache;
|
||||
if (cache == null || !cache.TryGetValue(key, out JsonContract? contract))
|
||||
@@ -94,4 +94,4 @@ namespace Newtonsoft.Json.Serialization
|
||||
return NameTable;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user