Interface IWriter<TRow>
Interface for synchronously writing rows.
Namespace: Cesil
Assembly: Cesil.dll
Syntax
public interface IWriter<TRow> : IDisposable
Type Parameters
| Name | Description |
|---|---|
| TRow |
Methods
Write(TRow)
Write a single row.
Declaration
void Write(TRow row)
Parameters
| Type | Name | Description |
|---|---|---|
| TRow | row |
WriteAll(IEnumerable<TRow>)
Write all rows in the provided enumerable.
Returns the number of rows written.
Declaration
int WriteAll(IEnumerable<TRow> rows)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Collections.Generic.IEnumerable<TRow> | rows |
Returns
| Type | Description |
|---|---|
| System.Int32 |
WriteComment(ReadOnlySpan<Char>)
Write a comment as a row.
Only supported if this IWriter's configuration has a way to indicate comments.
If the comment contains the row ending character sequence, it will be written as multiple comment lines.
Declaration
void WriteComment(ReadOnlySpan<char> comment)
Parameters
| Type | Name | Description |
|---|---|---|
| System.ReadOnlySpan<System.Char> | comment |
WriteComment(String)
Write a comment as a row.
Only supported if this IWriter's configuration has a way to indicate comments.
If the comment contains the row ending character sequence, it will be written as multiple comment lines.
Declaration
void WriteComment(string comment)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | comment |