YamlConverter class

Converts an object or value to or from YAML.

Namespace: System.Text.Yaml.Serialization ยท Assembly: Styml.dll

public abstract class YamlConverter

Derived: YamlConverter<T>, YamlConverterFactory

Converts an object or value to or from YAML.

PropertiesLink to this heading

TypeLink to this heading

Gets the type being converted by the current converter instance.

public abstract Type? Type { get; }

For instances of type YamlConverter<T> returns typeof(T), and for instances of type YamlConverterFactory returns null.

MethodsLink to this heading

CanConvertLink to this heading

Determines whether the type can be converted.

public abstract bool CanConvert(Type typeToConvert);

Parameters

  • typeToConvert: The type is checked as to whether it can be converted.

Returns: True if the type can be converted, false otherwise.

Generated from the XML documentation of the libraryBuilt with Douze

Esc to close