La méthode StreamReader.Peek de C# renvoie le prochain caractère à lire dans le flux sans avancer le curseur de lecture. Cette méthode permet de vérifier le caractère suivant sans le consommer. Le résultat renvoyé est un entier qui représente la valeur Unicode du caractère ou -1 s'il n'y a plus de caractère à lire. Cela facilite la vérification des caractères suivants dans un fichier texte ou un autre flux de données.
C# (CSharp) System.IO StreamReader.Peek - 60 exemples trouvés. Ce sont les exemples réels les mieux notés de System.IO.StreamReader.Peek extraits de projets open source. Vous pouvez noter les exemples pour nous aider à en améliorer la qualité.