HumanReadablePropertyOrderAttribute Class

Specifies the property order that is present in the output when serializing. Lower values are serialized first. Members with this attribute are serialized before the members without it.

[AttributeUsage(AttributeTargets.Property | AttributeTargets.Field, AllowMultiple = false)]
public sealed class HumanReadablePropertyOrderAttribute : HumanReadableAttribute

Remarks

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

Inheritance
HumanReadableAttribute HumanReadablePropertyOrderAttribute

Constructors

NameDescription
HumanReadablePropertyOrderAttribute(int)Initializes a new instance of HumanReadablePropertyOrderAttribute with the specified order.

HumanReadablePropertyOrderAttribute(int)

HumanReadablePropertyOrderAttribute.cs

Initializes a new instance of HumanReadablePropertyOrderAttribute with the specified order.

public HumanReadablePropertyOrderAttribute(int order)

Parameters

order int
The order of the property.

Properties

NameDescription
OrderThe serialization order of the property.

The serialization order of the property.

public int Order { get; }

Property value

int