Reads a 4-byte signed integer from the current stream and advances the current position of the stream by 4 bytes.
[Visual Basic] Overridable Public Function ReadInt32() As Integer [C#] public virtual int ReadInt32(); [C++] public: virtual int ReadInt32(); [JScript] public function ReadInt32() : int;
A 4-byte signed integer read from the current stream.
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