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 : HumanReadableAttributeRemarks
If multiple properties have the same value, the ordering is undefined between them.
- Inheritance
HumanReadableAttributeHumanReadablePropertyOrderAttribute
Constructors
| Name | Description |
|---|---|
| HumanReadablePropertyOrderAttribute(int) | Initializes a new instance of HumanReadablePropertyOrderAttribute with the specified order. |
HumanReadablePropertyOrderAttribute(int)
HumanReadablePropertyOrderAttribute.csInitializes a new instance of HumanReadablePropertyOrderAttribute with the specified order.
public HumanReadablePropertyOrderAttribute(int order)Parameters
orderint- The order of the property.
Properties
| Name | Description |
|---|---|
| Order | The serialization order of the property. |