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
TConverterType of converter the factory is for.
TTargetType 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
typeToConvertType
Returns
CreateConverter(Type, JsonSerializerOptions)
public override JsonConverter? CreateConverter(Type typeToConvert, JsonSerializerOptions options)
Parameters
typeToConvertTypeoptionsJsonSerializerOptions