Class TextReaderExtensions
IO-related extension methods for
Inheritance
System.Object
TextReaderExtensions
Namespace: X10D.IO
Assembly: X10D.dll
Syntax
public static class TextReaderExtensions : object
Methods
| Improve this Doc View SourceEnumerateLines(TextReader)
Enumerates the lines provided by the current text reader.
Declaration
public static IEnumerable<string> EnumerateLines(this TextReader reader)
Parameters
Type | Name | Description |
---|---|---|
TextReader | reader | The reader whose lines to enumerate. |
Returns
Type | Description |
---|---|
IEnumerable<System.String> | An enumerable collection of lines as read from |
EnumerateLinesAsync(TextReader)
Asynchronously enumerates the lines provided by the current text reader.
Declaration
public static IAsyncEnumerable<string> EnumerateLinesAsync(this TextReader reader)
Parameters
Type | Name | Description |
---|---|---|
TextReader | reader | The reader whose lines to enumerate. |
Returns
Type | Description |
---|---|
IAsyncEnumerable<System.String> | An asynchronous enumerable collection of lines as read from |