This topic has not yet been rated - Rate this topic

TextReader.Null Field

April 12, 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

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.