Class TextWriterExtensions
Represents extension methods for TextWriter class.
Inherited Members
Namespace: DotNext.IO
Assembly: DotNext.IO.dll
Syntax
public static class TextWriterExtensions
Methods
| Improve this Doc View SourceWriteAsync(TextWriter, ReadOnlySequence<Char>, CancellationToken)
Asynchronously writes a linked regions of characters to the text stream.
Declaration
public static ValueTask WriteAsync(this TextWriter writer, ReadOnlySequence<char> chars, CancellationToken token = default(CancellationToken))
Parameters
| Type | Name | Description |
|---|---|---|
| TextWriter | writer | The stream to write into. |
| ReadOnlySequence<Char> | chars | The linked regions of characters. |
| CancellationToken | token | The token that can be used to cancel the operation. |
Returns
| Type | Description |
|---|---|
| ValueTask | The task representing asynchronous execution of this method. |
Exceptions
| Type | Condition |
|---|---|
| OperationCanceledException | The operation has been canceled. |