StreamReader.Null 字段

定义

StreamReader 流周围的对象。

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时,始终返回零。 调用时ReadLineNullnull将返回。

有关常见 I/O 任务的列表,请参阅 常见 I/O 任务

适用于

另请参阅