Returns the next available character without actually reading it from the underlying string.
[Visual Basic] Overrides Public Function Peek() As Integer [C#] public override int Peek(); [C++] public: override int Peek(); [JScript] public override function Peek() : int;
The next character to be read, or-1 if no more characters are available.
Exception Type | Condition |
---|---|
IOException | An I/O error occurs. |
The current position of the StringReader is not changed by this operation.
StringReader Class | StringReader Members | System.IO Namespace