Table of Contents

DelimitedMalformedRecordBehavior Enum

Definition

Namespace
Bodu.Text.Delimited
Assembly
Bodu.Text.Delimited.dll
Package
Bodu.Text.Delimited 1.3.0
Source
DelimitedMalformedRecordBehavior.cs

Specifies how a delimited reader responds to a malformed record: one whose field count violates the configured field-count policy, or one in which text follows a closing quote.

public enum DelimitedMalformedRecordBehavior
Extension Methods

Fields

Throw = 0

A malformed record throws DelimitedFormatException: at the record's start for a field-count violation, and at the offending byte for text after a closing quote.

SkipRecord = 1

A malformed record is silently skipped whole, and reading continues with the next line: the line after the record for a field-count violation, or after the offending text for text after a closing quote.

Remarks

After a closing quote only the delimiter, a line break or the end of the input may follow, with spaces and tabs before them when TrimFields is set. An unterminated quoted field is not covered by this policy: it always throws.

Applies to

ProductVersions
.NET8, 10