Windows Dev Center

TextReader.Null Field

Provides a TextReader with no data to read from.

Namespace:  System.IO
Assembly:  mscorlib (in mscorlib.dll)

'Declaration
Public Shared ReadOnly Null As TextReader

Reading from the Null text reader is similar to reading from the end of a stream:

Read and Peek methods return -1.

ReadBlock method returns zero.

ReadLine and ReadToEnd methods return Nothing.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

Show:
© 2015 Microsoft