Table of Contents

Class DetectColumnCountChangesAttribute

Namespace
CsvHelper.Configuration.Attributes
Assembly
CsvHelper.dll

A value indicating whether changes in the column count should be detected. If true, a BadDataException will be thrown if a different column count is detected.

[AttributeUsage(AttributeTargets.Class, AllowMultiple = false, Inherited = true)]
public class DetectColumnCountChangesAttribute : Attribute, IClassMapper
Inheritance
DetectColumnCountChangesAttribute
Implements
Inherited Members

Constructors

DetectColumnCountChangesAttribute(bool)

A value indicating whether changes in the column count should be detected. If true, a BadDataException will be thrown if a different column count is detected.

public DetectColumnCountChangesAttribute(bool detectColumnCountChanges = true)

Parameters

detectColumnCountChanges bool

Properties

DetectColumnCountChanges

A value indicating whether changes in the column count should be detected. If true, a BadDataException will be thrown if a different column count is detected.

public bool DetectColumnCountChanges { get; }

Property Value

bool

Methods

ApplyTo(CsvConfiguration)

public void ApplyTo(CsvConfiguration configuration)

Parameters

configuration CsvConfiguration