DelimitedMalformedRecordBehavior Enum
Definition
- Assembly
- Bodu.Text.Delimited.dll
- Package
- Bodu.Text.Delimited 1.3.0
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 = 0A 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 = 1A 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
| Product | Versions |
|---|---|
| .NET | 8, 10 |