Il metodo Peek della classe System.IO.StreamReader in C# restituisce il valore intero del carattere successivo, senza leggerlo effettivamente dal flusso di input. Non sposta il puntatore di lettura e quindi è possibile chiamare Peek più volte consecutivamente senza influire sulla lettura successiva. Restituisce -1 se il carattere successivo non è disponibile o se si è raggiunto la fine del flusso di input. Questo metodo è utile per verificare il carattere successivo senza effettivamente leggerlo.
System.IO StreamReader.Peek in C# (CSharp): 60 esempi trovati. Questi sono i migliori esempi reali in C# (CSharp) per System.IO.StreamReader.Peek, estratti da progetti open source. Li puoi valutare, per aiutarci a migliorare la qualità dei nostri esempi.