Class HasHeaderRecordAttribute
- Namespace
- CsvHelper.Configuration.Attributes
- Assembly
- CsvHelper.dll
A value indicating whether the CSV file has a header record.
[AttributeUsage(AttributeTargets.Class, AllowMultiple = false, Inherited = true)]
public class HasHeaderRecordAttribute : Attribute, IClassMapper
- Inheritance
-
HasHeaderRecordAttribute
- Implements
- Inherited Members
Constructors
HasHeaderRecordAttribute(bool)
A value indicating whether the CSV file has a header record.
public HasHeaderRecordAttribute(bool hasHeaderRecord = true)
Parameters
hasHeaderRecord
boolA value indicating whether the CSV file has a header record.
Properties
HasHeaderRecord
Gets a value indicating whether the CSV file has a header record.
public bool HasHeaderRecord { get; }
Property Value
Methods
ApplyTo(CsvConfiguration)
public void ApplyTo(CsvConfiguration configuration)
Parameters
configuration
CsvConfiguration