HumanReadableConverterFactory Class

Base class for converter factories that create converters for specific types.

public abstract class HumanReadableConverterFactory : HumanReadableConverter
Inheritance
HumanReadableConverter HumanReadableConverterFactory

Constructors

NameDescription
HumanReadableConverterFactory()

HumanReadableConverterFactory()

protected HumanReadableConverterFactory()

No documentation is available.

Methods

NameDescription
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

typeToConvert Type
The type to create a converter for.
options HumanReadableSerializerOptions
The serialization options.

Returns

HumanReadableConverter? A converter for the type, or null if no converter could be created.

WriteValue(HumanReadableTextWriter, object?, Type, HumanReadableSerializerOptions)

HumanReadableConverterFactory.cs
public sealed override void WriteValue(HumanReadableTextWriter writer, object? value, Type valueType, HumanReadableSerializerOptions options)

No documentation is available.