CsvPropertyOrderAttribute Class

Sets the order of the column of a property or a field. The members are sorted by order, then in declaration order, base types first. Default is 0.

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

Constructors

NameDescription
CsvPropertyOrderAttribute(int)Sets the order of the column of a property or a field. The members are sorted by order, then in declaration order, base types first. Default is 0.

CsvPropertyOrderAttribute(int)

CsvPropertyOrderAttribute.cs

Sets the order of the column of a property or a field. The members are sorted by order, then in declaration order, base types first. Default is 0.

public CsvPropertyOrderAttribute(int order)

Parameters

order int
The order of the column.

Properties

NameDescription
OrderGets the order of the column.

Gets the order of the column.

public int Order { get; }

Property value

int