TextReader.Null フィールド

定義

読み取るデータがない TextReader を提供します。

public: static initonly System::IO::TextReader ^ Null;
public static readonly System.IO.TextReader Null;
 staticval mutable Null : System.IO.TextReader
Public Shared ReadOnly Null As TextReader 

フィールド値

注釈

Null テキスト リーダーからの読み取りは、ストリームの末尾からの読み取りと似ています。

  • Readメソッドと Peek メソッドは -1 を返します。

  • ReadBlock メソッドは 0 を返します。

  • ReadLine メソッドはnullを返します。

  • ReadToEnd メソッドは空の文字列を返します。

適用対象

こちらもご覧ください