HumanReadableConverterFactory Class
Base class for converter factories that create converters for specific types.
public abstract class HumanReadableConverterFactory : HumanReadableConverter- Inheritance
HumanReadableConverterHumanReadableConverterFactory
Constructors
| Name | Description |
|---|---|
| HumanReadableConverterFactory() |
HumanReadableConverterFactory()
protected HumanReadableConverterFactory()No documentation is available.
Methods
| Name | Description |
|---|---|
| CreateConverter(Type, HumanReadableSerializerOptions) | Creates a converter for the specified type. |
| WriteValue(HumanReadableTextWriter, object?, Type, HumanReadableSerializerOptions) |
CreateConverter(Type, HumanReadableSerializerOptions)
Creates a converter for the specified type.
public abstract HumanReadableConverter? CreateConverter(Type typeToConvert, HumanReadableSerializerOptions options)Parameters
typeToConvertType- The type to create a converter for.
optionsHumanReadableSerializerOptions- The serialization options.
Returns
HumanReadableConverter? A converter for the type, or null if no converter could be created.
WriteValue(HumanReadableTextWriter, object?, Type, HumanReadableSerializerOptions)
HumanReadableConverterFactory.cspublic sealed override void WriteValue(HumanReadableTextWriter writer, object? value, Type valueType, HumanReadableSerializerOptions options)Parameters
writerHumanReadableTextWritervalueobject?valueTypeTypeoptionsHumanReadableSerializerOptions
No documentation is available.