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 에서 읽는 것은 스트림의 끝에서 읽는 것과 비슷합니다.

  • Peek 메서드는 Read -1을 반환합니다.

  • 메서드는 ReadBlock 0을 반환합니다.

  • ReadLine 메서드는 null를 반환합니다.

  • 메서드는 ReadToEnd 빈 문자열을 반환합니다.

적용 대상

추가 정보