HumanReadableConverter<T> Class
Base class for strongly-typed converters.
public abstract class HumanReadableConverter<T> : HumanReadableConverterType parameters
T- The type this converter handles.
- Inheritance
HumanReadableConverterHumanReadableConverter<T>
Constructors
| Name | Description |
|---|---|
| HumanReadableConverter() |
HumanReadableConverter()
protected HumanReadableConverter()No documentation is available.
Methods
| Name | Description |
|---|---|
| CanConvert(Type) | Determines whether this converter can convert the specified type. |
| WriteValue(HumanReadableTextWriter, object?, Type, HumanReadableSerializerOptions) | Writes a value to the writer. |
| WriteValue(HumanReadableTextWriter, T?, HumanReadableSerializerOptions) | Writes a strongly-typed value to the writer. |
CanConvert(Type)
HumanReadableConverter`1.csWriteValue overloads
WriteValue(HumanReadableTextWriter, object?, Type, HumanReadableSerializerOptions)
HumanReadableConverter`1.csWrites a value to the writer.
public sealed override void WriteValue(HumanReadableTextWriter writer, object? value, Type valueType, HumanReadableSerializerOptions options)Parameters
writerHumanReadableTextWriter- The writer to write to.
valueobject?- The value to write.
valueTypeType- The type of the value.
optionsHumanReadableSerializerOptions- The serialization options.
WriteValue(HumanReadableTextWriter, T?, HumanReadableSerializerOptions)
Writes a strongly-typed value to the writer.
protected abstract void WriteValue(HumanReadableTextWriter writer, T? value, HumanReadableSerializerOptions options)Parameters
writerHumanReadableTextWriter- The writer to write to.
valueT?- The value to write.
optionsHumanReadableSerializerOptions- The serialization options.