[AttributeUsage(AttributeTargets.Class | AttributeTargets.Struct, Inherited = false)]
public sealed class CsvOptionsAttribute : Attribute
Namespace
CsvHelper
Assembly
CsvHelper.dll
Inheritance
object Attribute CsvOptionsAttribute
Builds
net10.0 netstandard2.1 netstandard2.0 net47

Remarks

Only the properties that are set change the options; the others keep the defaults. The source generator turns the attribute into code, so no reflection is involved. A CsvMode.FixedWidth mode also sets the options' field widths to the type's layout (CsvRecordMapper.GetFieldWidths). The options are checked when a reader or writer is created with them.

Constructors

Properties