Mono Class Library: System.IO.TextReader Overview | MembersSystem.IO.TextReader.Null Field |
Provides a System.IO.TextReader with no data to read from. [Edit]
Value: null
|
Reading from the TextReader.Null text reader is similar to reading from the end of a stream:
[Edit]
- TextReader.Read() and TextReader.Peek methods return -1
- TextReader.Read(char[], int, int) and TextReader.ReadBlock(Char[], int, int) methods return zero
- TextReader.ReadLine and TextReader.ReadToEnd methods return null.
Namespace: System.IO
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0