BinaryReader.PeekChar Method
[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]
Returns the next available character and does not advance the byte or character position.
Assembly: mscorlib (in mscorlib.dll)
Return Value
Type: System.Int32The next available character, or -1 if no more characters are available or the stream does not support seeking.
| Exception | Condition |
|---|---|
| IOException | An I/O error occurs. |
If surrogate characters can be expected in the stream use the ReadChars method, then set the stream back to the original position.
Show: