Class ExtraColumnTreatment

How to handle extra columns when reading a row.

A column is "extra" is if it's index is beyond those found in the header (or first row, if no header is present) of the CSV being read.

Inheritance
System.Object
ExtraColumnTreatment
Namespace: Cesil
Assembly: Cesil.dll
Syntax
public sealed class ExtraColumnTreatment : Enum

Fields

Ignore

Ignore any columns beyond those present in a header (or first row, if no header is present).

Declaration
public const ExtraColumnTreatment Ignore
Field Value
Type Description
ExtraColumnTreatment

IncludeDynamic

Include columns beyond those in the header (or first row, if no header is present) when reading dynamic rows. Extra columns will be accessible via index, as no column name will be available.

This is equivalent to Ignore when reading statically typed rows.

Declaration
public const ExtraColumnTreatment IncludeDynamic
Field Value
Type Description
ExtraColumnTreatment

ThrowException

Throw an exception when a column beyond those in the header ( or first row, if no header is present) is encountered.

Declaration
public const ExtraColumnTreatment ThrowException
Field Value
Type Description
ExtraColumnTreatment

value__

Declaration
public byte value__
Field Value
Type Description
System.Byte
In This Article
Back to top Generated by DocFX