Reads a Boolean from the current stream. The current position of the stream is advanced by one byte.
[Visual Basic] Overridable Public Function ReadBoolean() As Boolean [C#] public virtual bool ReadBoolean(); [C++] public: virtual bool ReadBoolean(); [JScript] public function ReadBoolean() : Boolean;
true if the byte is non-zero; otherwise false.
Exception Type | Condition |
---|---|
EndOfStreamException | The end of the stream has been reached. |
IOException | An I/O error occurs. |
BinaryReader Class | BinaryReader Members | System.IO Namespace