Table of Contents

YamlConverter Class

Definition

Namespace
Bodu.Text.Yaml.Serialization
Assembly
Bodu.Text.Yaml.dll
Package
Bodu.Text.Yaml 1.0.0
Source
YamlConverter.cs

Serves as the non-generic base for custom YAML converters, in the manner of JsonConverter.

public abstract class YamlConverter
Inheritance
YamlConverter
Derived
Inherited Members
Extension Methods

Remarks

The constructor is inaccessible outside this assembly, so external code extends the model through YamlConverter<T> rather than deriving from this type directly.

Methods

CanConvert(Type)

Determines whether the converter can convert the specified type.

public abstract bool CanConvert(Type typeToConvert)

Parameters

typeToConvert Type

The type to test.

Returns

bool

true when the converter handles the type; otherwise false.

Applies to

ProductVersions
.NET8, 10