Show / Hide Table of Contents

Class TextWriterExtensions

Represents extension methods for TextWriter class.

Inheritance
Object
TextWriterExtensions
Inherited Members
Object.Equals(Object)
Object.Equals(Object, Object)
Object.GetHashCode()
Object.GetType()
Object.MemberwiseClone()
Object.ReferenceEquals(Object, Object)
Object.ToString()
Namespace: DotNext.IO
Assembly: DotNext.IO.dll
Syntax
public static class TextWriterExtensions

Methods

| Improve this Doc View Source

WriteAsync(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.

  • Improve this Doc
  • View Source
In This Article
Back to top Generated by DocFX