Class TypeWithObjectPropertiesJsonConverterFactory<TConverter, TTarget>

Namespace
Cratis.Json
Assembly
Cratis.Fundamentals.dll

Represents a JsonConverterFactory for creating converters for types with object properties.

public class TypeWithObjectPropertiesJsonConverterFactory<TConverter, TTarget> : JsonConverterFactory where TConverter : TypeWithObjectPropertiesJsonConverter<TTarget>, new() where TTarget : class

Type Parameters

TConverter

Type of converter the factory is for.

TTarget

Type of target the converter is for.

Inheritance
TypeWithObjectPropertiesJsonConverterFactory<TConverter, TTarget>
Inherited Members
Extension Methods

Constructors

TypeWithObjectPropertiesJsonConverterFactory()

public TypeWithObjectPropertiesJsonConverterFactory()

Methods

CanConvert(Type)

public override bool CanConvert(Type typeToConvert)

Parameters

typeToConvert Type

Returns

bool

CreateConverter(Type, JsonSerializerOptions)

public override JsonConverter? CreateConverter(Type typeToConvert, JsonSerializerOptions options)

Parameters

typeToConvert Type
options JsonSerializerOptions

Returns

JsonConverter