BinaryReaderPeekChar Method |
Returns the next available character and does not advance the byte or character position.
Namespace: System.IOAssembly: mscorlib (in mscorlib.dll) Version: 4.0.0.0
Syntax public virtual int PeekChar()
Return Value
Type:
Int32The next available character, or -1 if no more characters are available or the stream does not support seeking.
Exceptions Exception | Condition |
---|
IOException | An I/O error occurs. |
ArgumentException | The current character cannot be decoded into the internal character buffer by using the Encoding selected for the stream. |
See Also