View Source
Class CaseInsensitiveDictionaryConverter<T>
Marks dictionaries so they are deserialized as case-insensitive.
Inheritance
System.Object
Assembly: Umbraco.Infrastructure.dll
Syntax
public class CaseInsensitiveDictionaryConverter<T> : CustomCreationConverter<IDictionary>
Type Parameters
Examples
[JsonConverter(typeof(CaseInsensitiveDictionaryConverter{PropertyData[]}))]
public Dictionary{string, PropertyData[]} PropertyData {{ get; set; }}
Constructors
View Source
CaseInsensitiveDictionaryConverter()
Declaration
public CaseInsensitiveDictionaryConverter()
View Source
CaseInsensitiveDictionaryConverter(StringComparer)
Declaration
public CaseInsensitiveDictionaryConverter(StringComparer comparer)
Parameters
Type |
Name |
Description |
StringComparer |
comparer |
|
Properties
View Source
CanRead
Declaration
public override bool CanRead { get; }
Property Value
Type |
Description |
System.Boolean |
|
View Source
CanWrite
Declaration
public override bool CanWrite { get; }
Property Value
Type |
Description |
System.Boolean |
|
Methods
View Source
CanConvert(Type)
Declaration
public override bool CanConvert(Type objectType)
Parameters
Type |
Name |
Description |
Type |
objectType |
|
Returns
Type |
Description |
System.Boolean |
|
View Source
Create(Type)
Declaration
public override IDictionary Create(Type objectType)
Parameters
Type |
Name |
Description |
Type |
objectType |
|
Returns
Type |
Description |
System.Collections.IDictionary |
|