Reads a block of characters from the input string.
- buffer
- A char array. When this method returns, contains the specified character array with the values between index and (index + count - 1) replaced by the characters read from the current source.
- index
- A int that specifies the starting index in the buffer.
- count
- A int that specifies the number of characters to read.
A int containing the total number of characters read into the buffer, or zero if the end of the underlying string has been reached.
Type Reason ArgumentNullException buffer is null. ArgumentException (index + count ) > buffer.Length. ArgumentOutOfRangeException index < 0
- or-
count < 0.
ObjectDisposedException The current reader is closed.
Note: This method overrides TextReader.Read.
Namespace: System.IO
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0