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 빈 문자열을 반환합니다.

적용 대상

추가 정보