YamlPropertyOrderAttribute class

Specifies the property order that is present in the YAML when serializing. Lower values are serialized first. If the attribute is not specified, the default value is 0.

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

public sealed class YamlPropertyOrderAttribute : YamlAttribute

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

Specifies the property order that is present in the YAML when serializing. Lower values are serialized first. If the attribute is not specified, the default value is 0.

RemarksLink to this heading

If multiple properties have the same value, the ordering is undefined between them.

ConstructorsLink to this heading

Initializes a new instance of YamlPropertyOrderAttribute with the specified order.

public YamlPropertyOrderAttribute(int order);

Parameters

  • order: The order of the property.

PropertiesLink to this heading

OrderLink to this heading

The serialization order of the property.

public int Order { get; }

Generated from the XML documentation of the libraryBuilt with Douze

Esc to close