Class TabularOptions
Specifies options to control the behavior of reading and writing tabular data. This class cannot be inherited.
public sealed class TabularOptions
- Inheritance
-
TabularOptions
Constructors
TabularOptions()
Initializes a new instance of the TabularOptions class.
public TabularOptions()
Properties
BufferSize
Gets or sets the minimum size of the buffer in bytes for reading from and writing to a stream.
public int BufferSize { get; set; }
Property Value
- int
A 32-bit signed integer. Must be greater than zero and less than or equal to MaxLength. The default is
16384.
Encoding
Gets or sets the character encoding for reading from and writing to a stream.
public Encoding? Encoding { get; set; }
Property Value
- Encoding
An Encoding instance or null to use the default UTF-8 encoding without byte order mark (BOM). The default is null.
FormatProvider
Gets or sets the object that supplies culture-specific formatting information when reading and writing fields as typed values.
public IFormatProvider? FormatProvider { get; set; }
Property Value
- IFormatProvider
An IFormatProvider object or null to use the default culture-independent provider. The default is null.
LeaveOpen
Gets or sets a value that indicates whether a stream should stay open after a reader or writer is disposed.
public bool LeaveOpen { get; set; }
Property Value
- bool
true to leave a stream open after a reader or writer is disposed; otherwise, false. The default is false.
StringFactory
Gets or set the factory that creates string instances from character sequences when reading fields as strings.
public TabularStringFactory? StringFactory { get; set; }
Property Value
- TabularStringFactory
A TabularStringFactory instance or null to use the default factory, which returns Empty or creates a new string instance. The default is null.
TrimWhitespace
Gets or sets a value that indicates whether leading and trailing white-space characters should be removed when reading and writing fields as strings.
public bool TrimWhitespace { get; set; }