Method ReadBlock
ReadBlock(StringReader, int)
Reads up to the specified number of characters from the reader.
public static string ReadBlock(this StringReader stringReader, int length)
Parameters
stringReaderStringReaderThe reader to read from.
lengthintThe maximum number of characters to read.
Returns
- string
A string containing the characters read, which may be shorter than
lengthif the end is reached.