Click or drag to resize

TextReaderPeek Method

Reads the next character without changing the state of the reader or the character source. Returns the next available character without actually reading it from the input stream.

Namespace: Crestron.SimplSharp.CrestronIO
Assembly: SimplSharpHelperInterface (in SimplSharpHelperInterface.dll) Version: 2.21.121
Syntax
C#
public abstract int Peek()

Return Value

Int32
An integer representing the next character to be read, or -1 if no more characters are available or the stream does not support seeking.
Exceptions
ExceptionCondition
ObjectDisposedException The CrestronIO.TextReader is closed.
IOException An I/O error occurs.

Version Information

.NET

Supported in: 6.0

.NET Compact Framework

Supported in: 3.5
See Also