YamlRequiredAttribute class

Indicates that the annotated member must bind to a YAML property on deserialization.

Namespace: System.Text.Yaml.Serialization ยท Assembly: Styml.dll

public sealed class YamlRequiredAttribute : YamlAttribute

Inheritance: object โ†’ Attribute โ†’ YamlAttribute โ†’ YamlRequiredAttribute

Indicates that the annotated member must bind to a YAML property on deserialization.

RemarksLink to this heading

null token in YAML will not trigger a validation error. For contracts originating from DefaultYamlTypeInfoResolver or YamlSerializerContext, this attribute will be mapped to YamlPropertyInfo.IsRequired.

ConstructorsLink to this heading

Initializes a new instance of YamlRequiredAttribute.

public YamlRequiredAttribute();

Generated from the XML documentation of the libraryBuilt with Douze

Esc to close