TomlPropertyOrderAttribute Class

Specifies the emitted order for a serialized member.

[AttributeUsage(AttributeTargets.Property | AttributeTargets.Field, AllowMultiple = false)]
public sealed class TomlPropertyOrderAttribute : TomlAttribute
Inheritance
TomlAttribute TomlPropertyOrderAttribute

Constructors

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

TomlPropertyOrderAttribute(int)

TomlPropertyOrderAttribute.cs

Initializes a new instance of the TomlPropertyOrderAttribute class.

public TomlPropertyOrderAttribute(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