CsvRecordMember(string, Type, CsvRecordMemberKind, IReadOnlyList<string>, int, bool, bool)
public CsvRecordMember(string name, Type type, CsvRecordMemberKind kind, IReadOnlyList<string> columnNames, int columnIndex, bool optional, bool isConstructorParameter)Describes a member. Code generated for CsvRecordAttribute types creates these.
Parameters
namestring- The name of the property or field, or of the constructor parameter when it sets neither.
typeType- The type of the member.
kindCsvRecordMemberKind- How the member gets its value.
columnNamesIReadOnlyList<string>- The header names it reads: its column's name and alternate names, in the order they are tried, or a collection's names; empty for a nested record, a constant, and a collection read by index.
columnIndexint- The 0-based index of its column (the first column of a collection), or -1 when it is found by name or has none.
optionalbool- Whether its columns may be missing from the header.
isConstructorParameterbool- Whether a constructor parameter sets it.
Exceptions
- ArgumentNullException
name,typeorcolumnNamesisnull.