Метод StreamReader.Peek в C# возвращает следующий символ из потока без перемещения текущей позиции чтения. Это полезно для проверки следующего символа, не считывая его полностью. Возвращаемое значение является целочисленным представлением следующего символа или -1, если достигнут конец потока. Этот метод позволяет программисту проверить символ, который будет следующим прочитан из потока, без изменения текущего положения чтения.
C# (CSharp) System.IO StreamReader.Peek - 60 примеров найдено. Это лучшие примеры C# (CSharp) кода для System.IO.StreamReader.Peek, полученные из open source проектов. Вы можете ставить оценку каждому примеру, чтобы помочь нам улучшить качество примеров.