BinaryReader.ReadDecimal 方法
定义
从当前流中读取十进制数值,并将该流的当前位置提升十六个字节。Reads a decimal value from the current stream and advances the current position of the stream by sixteen bytes.
public:
virtual System::Decimal ReadDecimal();
public virtual decimal ReadDecimal ();
abstract member ReadDecimal : unit -> decimal
override this.ReadDecimal : unit -> decimal
Public Overridable Function ReadDecimal () As Decimal
返回
从当前流中读取的十进制数值。A decimal value read from the current stream.
例外
已到达流的末尾。The end of the stream is reached.
流已关闭。The stream is closed.
出现 I/O 错误。An I/O error occurred.
注解
BinaryReader 读取失败后不还原文件位置。BinaryReader does not restore the file position after an unsuccessful read.
有关常见 i/o 任务的列表,请参阅 常见 I/o 任务。For a list of common I/O tasks, see Common I/O Tasks.