Reads all characters from the current position to the end of the text reader asynchronously and returns them as one string.
public virtual Task<string> ReadToEndAsync()
The number of characters is larger than MaxValue.
The text reader has been disposed.
The reader is currently in use by a previous read operation.
The TextReader class is an abstract class. Therefore, you do not instantiate it in your code. For an example of using the ReadToEndAsync method, see the StreamReader.ReadToEndAsync method.