Class ComplexKeyDictionaryJsonConverterFactory

Namespace
Cratis.Json
Assembly
Cratis.Fundamentals.dll

Represents a JsonConverterFactory for dictionaries with complex key types.

public class ComplexKeyDictionaryJsonConverterFactory : JsonConverterFactory
Inheritance
ComplexKeyDictionaryJsonConverterFactory
Inherited Members
Extension Methods

Constructors

ComplexKeyDictionaryJsonConverterFactory()

public ComplexKeyDictionaryJsonConverterFactory()

Methods

CanConvert(Type)

[UnconditionalSuppressMessage("Trimming", "IL2070", Justification = "Dictionary interfaces are BCL types that are always preserved by the runtime.")]
public override bool CanConvert(Type typeToConvert)

Parameters

typeToConvert Type

Returns

bool

CreateConverter(Type, JsonSerializerOptions)

[UnconditionalSuppressMessage("Trimming", "IL2070", Justification = "Dictionary interfaces are BCL types that are always preserved by the runtime.")]
[UnconditionalSuppressMessage("AOT", "IL3050", Justification = "Uses MakeGenericType on ComplexKeyDictionaryJsonConverter<,,>; types are always preserved.")]
[UnconditionalSuppressMessage("Trimming", "IL2070", Justification = "ComplexKeyDictionaryJsonConverter<,,> has a public parameterless constructor that is always preserved.")]
[UnconditionalSuppressMessage("Trimming", "IL2071", Justification = "ComplexKeyDictionaryJsonConverter<,,> has a public parameterless constructor that is always preserved.")]
public override JsonConverter CreateConverter(Type typeToConvert, JsonSerializerOptions options)

Parameters

typeToConvert Type
options JsonSerializerOptions

Returns

JsonConverter