YamlPropertyOrderAttribute Class

Specifies the emitted order for a serialized member.

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

Constructors

NameDescription
YamlPropertyOrderAttribute(int)Initializes a new instance of the YamlPropertyOrderAttribute class.

YamlPropertyOrderAttribute(int)

YamlPropertyOrderAttribute.cs

Initializes a new instance of the YamlPropertyOrderAttribute class.

public YamlPropertyOrderAttribute(int order)

Parameters

order int
The order value.

Properties

NameDescription
OrderGets the order value.

Gets the order value.

public int Order { get; }

Property value

int