YamlExtensionDataAttribute Class

Definition

Assembly SharpYaml.dll
Inherits ObjectAttributeYamlAttribute
Show inherited members (42)

Indicates that a member should receive any unmapped YAML mapping keys encountered during deserialization.

[AttributeUsage(AttributeTargets.Property | AttributeTargets.Field)]
public sealed class YamlExtensionDataAttribute : YamlAttribute

Remarks

This behaves similarly to System.Text.Json extension data. The extension data member is not emitted as a regular mapping key; instead its contents are merged into the surrounding mapping during serialization.