Class NullToDefaultConverterFactory

Assembly: redb.Core.dll

Factory that creates converters to handle JSON null → default(T) for non-nullable value types.
Fixes MSSQL deserialization where null values are explicitly included in JSON.

public class NullToDefaultConverterFactory : JsonConverterFactory

Inheritance

ObjectJsonConverterJsonConverterFactoryNullToDefaultConverterFactory

Methods

CanConvert(Type)

When overridden in a derived class, determines whether the converter instance can convert the specified object type.

public override bool CanConvert(Type typeToConvert)

CreateConverter(Type, JsonSerializerOptions)

Creates a converter for a specified type.

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