Writes a subarray of characters followed by a line terminator asynchronously to the text string or stream.
A task that represents the asynchronous write operation.
The line terminator is defined by the TextWriter.CoreNewLine field.
The System.IO.TextWriter class is an abstract class. Therefore, you do not instantiate it in your code. For an example of using the TextWriter.WriteLineAsync(Char[], int, int) method, see the StreamWriter.WriteLineAsync(Char[], int, int) method.