CsvPropertyInfo Class

The serialization metadata of a column: a property, a field or a constructor parameter.

public abstract class CsvPropertyInfo

Properties

NameDescription
CanDeserializeGets a value indicating whether the value of the column is read.
CanSerializeGets a value indicating whether the value of the column is written.
ColumnIndexGets the index set with CsvColumnIndexAttribute, or null.
ConverterGets the converter of the values of the column.
FormatGets the format string set with CsvFormatAttribute, or null.
IsRequiredGets a value indicating whether the column is required.
MemberNameGets the name of the member.
NameGets the name of the column.
OrderGets the order set with CsvPropertyOrderAttribute.
PropertyTypeGets the type of the values of the column.

CanDeserialize

Gets a value indicating whether the value of the column is read.

public abstract bool CanDeserialize { get; }

Property value

bool

CanSerialize

Gets a value indicating whether the value of the column is written.

public abstract bool CanSerialize { get; }

Property value

bool

Gets the index set with CsvColumnIndexAttribute, or null.

public int? ColumnIndex { get; }

Property value

int?

Gets the converter of the values of the column.

public CsvConverter Converter { get; }

Property value

CsvConverter

Gets the format string set with CsvFormatAttribute, or null.

public string? Format { get; }

Property value

string?

Gets a value indicating whether the column is required.

public bool IsRequired { get; }

Property value

bool

Gets the name of the member.

public string MemberName { get; }

Property value

string

Gets the name of the column.

public string Name { get; }

Property value

string

Gets the order set with CsvPropertyOrderAttribute.

public int Order { get; }

Property value

int

PropertyType

CsvPropertyInfo.cs

Gets the type of the values of the column.

public Type PropertyType { get; }

Property value

Type

Methods

NameDescription
ToString()Returns a string that represents the current object.

Returns a string that represents the current object.

public override string ToString()

Returns

string A string that represents the current object.