IYamlTypeInfoResolver Interface

Resolves type metadata used by YamlSerializer.

public interface IYamlTypeInfoResolver

Methods

NameDescription
GetTypeInfo(Type, YamlSerializerOptions)Gets type metadata for a CLR type.

GetTypeInfo(Type, YamlSerializerOptions)

Gets type metadata for a CLR type.

YamlTypeInfo? GetTypeInfo(Type type, YamlSerializerOptions options)

Parameters

type Type
The CLR type to resolve.
options YamlSerializerOptions
The serializer options in use.

Returns

YamlTypeInfo? The metadata for type, or null when not available.