Class
YamlConverter<T>
OfficeIMO.Yaml
Reads and writes values of T. Reading hands the converter each non-null value as a detached node, with aliases expanded; writing hands it a writer positioned where the value goes, for exactly one node. A null scalar reads as the default of T, and a null value writes as a null scalar, without asking the converter.
Inheritance
- YamlConverter
- YamlConverter<T>
Derived Types
Usage
Explore 1 API references to this type
This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.
Returned or exposed by 1
- Property YamlSerializerOptions.Converters
Type Parameters
- T
- The type the converter handles.
Methods
public abstract T? Read(YamlNode node, YamlSerializerOptions options) #Reads a value from its node.
Parameters
- node OfficeIMO.Yaml.YamlNode
- The value's node: a scalar, mapping or sequence that belongs to no document.
- options OfficeIMO.Yaml.YamlSerializerOptions
- The options the serializer runs with.
Returns
T?public abstract void Write(YamlWriter writer, T? value, YamlSerializerOptions options) #Writes a non-null value as one node: a scalar, or a mapping or sequence with everything inside it.
Parameters
- writer OfficeIMO.Yaml.YamlWriter
- The writer, positioned where the value goes.
- value T?
- The value.
- options OfficeIMO.Yaml.YamlSerializerOptions
- The options the serializer runs with.
Inherited Methods
Properties
public override sealed Type Type { get; } #Gets the type whose values the converter reads and writes.