Returns the next available character but does not consume it.

C# | Visual Basic | Visual C++ | F# |
public int Peek()
Public Function Peek As Integer
public: int Peek()
member Peek : unit -> int

Int32
An integer representing the next character to be read, or -1 if no more characters are available.
An integer representing the next character to be read, or -1 if no more characters are available.

Exception | Condition |
---|---|
ObjectDisposedException | Is raised when this object is disposed and this method is accessed. |
Assembly: LumiSoft.Net (Module: LumiSoft.Net.dll) Version: 4.5.5510.19119