TypeInfoResolver Property

Definition

Namespace SharpYaml
Assembly SharpYaml.dll

Gets or sets a metadata resolver used to retrieve YamlTypeInfo instances.

public IYamlTypeInfoResolver? TypeInfoResolver { get; init; }

Returns

Remarks

When this is a source-generated YamlSerializerContext and this options instance differs from the context's own options, generated metadata may be initialized for this options instance. Cache and reuse the resulting YamlTypeInfo for repeated operations with the same runtime converter set.