Make AutoInterningStringKeyCaseInsensitiveDictionaryConverter case insensitive

Instead of calling the parents CreateDictionary we just newed up a regular dictionary leading to AutoInterningStringKeyCaseInsensitiveDictionaryConverter not actually being case insensitive
This commit is contained in:
Nikolaj
2021-08-26 14:21:40 +02:00
parent 94b0b252ec
commit ac8a83177f

View File

@@ -7,7 +7,7 @@ using Newtonsoft.Json.Converters;
namespace Umbraco.Core.Serialization
{
/// <summary>
/// When applied to a dictionary with a string key, will ensure the deserialized string keys are interned
/// When applied to a dictionary with a string key, will ensure the deserialized string keys are interned
/// </summary>
/// <typeparam name="TValue"></typeparam>
/// <remarks>
@@ -26,7 +26,7 @@ namespace Umbraco.Core.Serialization
{
if (reader.TokenType == JsonToken.StartObject)
{
var dictionary = new Dictionary<string, TValue>();
var dictionary = Create(objectType);
while (reader.Read())
{
switch (reader.TokenType)