Class CSVWriter
Attempts to produce RFC 2234 compliant CSV files
public sealed class CSVWriter : IDisposable
- Inheritance
-
CSVWriter
- Implements
- Inherited Members
Constructors
CSVWriter(Stream, bool)
public CSVWriter(Stream stream, bool dispose = true)
Parameters
streamStreamThe stream into which to write the CSV.
disposeboolIf true, also dispose of
streamwhen disposing this instance.
Methods
Dispose()
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
public void Dispose()
FlushAsync(CancellationToken)
public Task FlushAsync(CancellationToken cancellationToken)
Parameters
cancellationTokenCancellationToken
Returns
NextRecordAsync(CancellationToken)
public Task NextRecordAsync(CancellationToken cancellationToken)
Parameters
cancellationTokenCancellationToken
Returns
WriteField(string?)
public void WriteField(string? field)
Parameters
fieldstring