CsvRecordProjectionsAttribute()
Added in v34.0.0
public CsvRecordProjectionsAttribute()Initializes a new instance of CsvRecordProjectionsAttribute.
Attribute in CsvHelper
Makes the source generator write projections for the CsvRecordAttribute types of the assembly: mappers that read only some members (CsvRecordMapper.CreateProjection), so that the columns of the others are neither looked up nor parsed.
[AttributeUsage(AttributeTargets.Assembly)]
public sealed class CsvRecordProjectionsAttribute : AttributeCsvHelperCsvHelper.dllCsvHelper.Linq uses projections to read only the members that a query uses. Assemblies that reference CsvHelper.Linq get them without this attribute; it is for record types that another assembly queries, such as a library of models. Without projections, the generated code is smaller, which matters for native AOT.
public CsvRecordProjectionsAttribute()Initializes a new instance of CsvRecordProjectionsAttribute.