CreateConverter Method
Definition
- Namespace
- Cuemon.Extensions.Text.Json.Converters
- Assemblies
- Cuemon.Extensions.Text.Json.dll
CreateConverter(Type, JsonSerializerOptions)
Creates a converter for a specified typeToConvert.
public override JsonConverter CreateConverter(Type typeToConvert, JsonSerializerOptions options)
Parameters
typeToConvertTypeThe Type being converted.
optionsJsonSerializerOptionsThe JsonSerializerOptions being used.
Returns
- JsonConverter
An instance of a JsonConverter<T> where T is compatible with
typeToConvert. If null is returned, a NotSupportedException will be thrown.