CsvRecordAttribute()
Added in v34.0.0
public CsvRecordAttribute()Initializes a new instance of CsvRecordAttribute.
Attribute in CsvHelper
Marks a partial class, struct or record that CsvReader.GetRecords can read. The CsvHelper source generator writes its mapping code at compile time, so no reflection is involved and the type works with trimming and native AOT.
[AttributeUsage(AttributeTargets.Class | AttributeTargets.Struct, Inherited = false)]
public sealed class CsvRecordAttribute : AttributeCsvHelperCsvHelper.dllPublic and internal settable properties and fields are mapped, and the parameters of the constructor (the one marked CsvConstructorAttribute, else the parameterless one, else the one with the most parameters). A member reads the header column with its name (exact match first, then ignoring case and surrounding whitespace) unless CsvColumnAttribute says otherwise.
public CsvRecordAttribute()Initializes a new instance of CsvRecordAttribute.