StreamReader.Null StreamReader.Null StreamReader.Null StreamReader.Null Field

定義

空資料流周圍的 StreamReader 物件。A StreamReader object around an empty stream.

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

欄位值

備註

在上Null叫用 read 方法時,一律會傳回零。When read methods are invoked on Null, zero is always returned. ReadLineNull叫用時null ,會傳回。When ReadLine is invoked on Null, null is returned.

如需一般 i/o 工作的清單, 請參閱一般 i/o工作。For a list of common I/O tasks, see Common I/O Tasks.

適用於

另請參閱