YamlExtensionDataAttribute Class
Indicates that a member should receive any unmapped YAML mapping keys encountered during deserialization.
[AttributeUsage(AttributeTargets.Property | AttributeTargets.Field)]
public sealed class YamlExtensionDataAttribute : YamlAttributeRemarks
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.
The member must be a YamlMapping, or a Dictionary<TKey, TValue>, IDictionary<TKey, TValue>, or IReadOnlyDictionary<TKey, TValue> whose keys are String and whose values are Object or YamlNode.
- Inheritance
YamlAttributeYamlExtensionDataAttribute
Constructors
| Name | Description |
|---|---|
| YamlExtensionDataAttribute() |
YamlExtensionDataAttribute()
public YamlExtensionDataAttribute()No documentation is available.