Click or drag to resize
BinaryReaderPeekChar Method
Returns the next available character and does not advance the byte or character position.

Namespace: System.IO
Assembly: mscorlib (in mscorlib.dll) Version: 4.0.0.0
Syntax
C#
public virtual int PeekChar()

Return Value

Type: Int32
The next available character, or -1 if no more characters are available or the stream does not support seeking.
Exceptions
ExceptionCondition
IOExceptionAn I/O error occurs.
ArgumentExceptionThe current character cannot be decoded into the internal character buffer by using the Encoding selected for the stream.
See Also