Table of Contents

Class CSVWriter

Namespace
The.Utility
Assembly
Instagile.dll

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

stream Stream

The stream into which to write the CSV.

dispose bool

If true, also dispose of stream when 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

cancellationToken CancellationToken

Returns

Task

NextRecordAsync(CancellationToken)

public Task NextRecordAsync(CancellationToken cancellationToken)

Parameters

cancellationToken CancellationToken

Returns

Task

WriteField(string?)

public void WriteField(string? field)

Parameters

field string