Fixed a typo in CamelCasePropertyNamesContractResolver (#3013)

This commit is contained in:
Jakub Konecki
2025-02-24 15:19:38 +08:00
committed by GitHub
parent e19bc80584
commit e794f1dd0a
@@ -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;
}
}
}
}