ReflectionYamlTypeInfoResolver Class

Provides reflection-based type metadata for YamlSerializer.

public sealed class ReflectionYamlTypeInfoResolver : IYamlTypeInfoResolver
Implements

Constructors

NameDescription
ReflectionYamlTypeInfoResolver()

ReflectionYamlTypeInfoResolver()

public ReflectionYamlTypeInfoResolver()

No documentation is available.

Properties

NameDescription
DefaultGets a shared default reflection resolver instance.

Gets a shared default reflection resolver instance.

public static ReflectionYamlTypeInfoResolver Default { get; }

Methods

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

GetTypeInfo(Type, YamlSerializerOptions)

ReflectionYamlTypeInfoResolver.cs

Gets type metadata for a CLR type.

public 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.