System::IO::StreamReader::Peek method

StreamReader::Peek method

Reads a single character from the stream without changing the stream’s read cursor.

virtual int System::IO::StreamReader::Peek() override

ReturnValue

Read character encoded with UTF-16 encoding; if the read character is represented by two codepoints in UTF-16 encoding then only the high surragate is returned; if no character was read -1 is returned

See Also