TextReader.Null Field

July 28, 2014

Provides a TextReader with no data to read from.

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

public static readonly TextReader Null

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 null.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

Show:
© 2014 Microsoft