YamlRequiredAttribute Class

Definition

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

Specifies that a member is required during deserialization.

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

Remarks

When a required member is missing from the YAML mapping, deserialization throws a YamlException.