Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Class

YamlObjectInfoValues<T>

OfficeIMO.Yaml

Namespace
OfficeIMO.Yaml
Assembly
OfficeIMO.Yaml
Source revision
0eef6a5756b9 with working tree changes
Modifiers
sealed
Attributes
EditorBrowsable(1)

The constructor and members of an object type, for YamlMetadataServices.CreateObjectInfo.

Inheritance

  • object
  • YamlObjectInfoValues<T>

Usage

Explore 1 API references to this type

This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.

Accepted by parameters 1

Type Parameters

T
The object type.

Constructors

public YamlObjectInfoValues<T>() #

Properties

public Func<T?>? ObjectCreator { get; set; } #

Gets or sets the function that creates an instance with the parameterless constructor.

public Func<object?[], T?>? ObjectWithParameterizedConstructorCreator { get; set; } #

Gets or sets the function that creates an instance from constructor arguments, in parameter order. When set it is used instead of YamlObjectInfoValues<T>.ObjectCreator.

public Func<YamlSerializerOptions, YamlPropertyInfo[]>? PropertyMetadataInitializer { get; set; } #

Gets or sets the function that creates the property metadata, in writing order.

public Func<YamlParameterInfoValues[]>? ConstructorParameterMetadataInitializer { get; set; } #

Gets or sets the function that describes the parameters of the constructor YamlObjectInfoValues<T>.ObjectWithParameterizedConstructorCreator calls.

public OfficeDerivedTypeAttribute[]? DerivedTypes { get; set; } #

Gets or sets the registered derived types, which make the type polymorphic.

public string? DiscriminatorPropertyName { get; set; } #

Gets or sets the mapping key that holds the discriminator, or null to use tags.