SourceReader.Peek Method ​
Definition ​
Returns the character at the specified offset from the current position, or the NUL character '\0' if the offset is outside the file.
c#
public char Peek(int offset);Parameters ​
| Name | Type | Description |
|---|---|---|
offset | Int32 | The offset from the current position; can be negative to peek at preceding characters. |
Returns ​
The character at the offset.