Table of Contents

ReadAllLinesAsync Method

Definition

Namespace
Cuemon.Extensions.IO
Assemblies
Cuemon.Extensions.IO.dll
Source
src/Cuemon.Extensions.IO/TextReaderExtensions.cs

ReadAllLinesAsync(TextReader)

Asynchronously reads all lines of characters from the reader and returns the data as a sequence of strings.

public static Task<IReadOnlyList<string>> ReadAllLinesAsync(this TextReader reader)

Parameters

reader TextReader

The TextReader to extend.

Returns

Task<IReadOnlyList<string>>

A task that represents the asynchronous operation. The task result contains a IReadOnlyList<T> that contains all lines of characters from the reader that contains elements from the input sequence.