Reads all characters from the current position to the end of the text reader asynchronously and returns them as one string.
A task that represents the asynchronous read operation. The value of the TResult parameter contains a string with the characters from the current position to the end of the text reader.
The System.IO.TextReader class is an abstract class. Therefore, you do not instantiate it in your code. For an example of using the TextReader.ReadToEndAsync method, see the StreamReader.ReadToEndAsync method.