A propriedade "DiscardBufferedData" da classe System.IO.StreamReader em C# é usada para descartar todos os dados armazenados em buffer para o fluxo de leitura atual. Isso significa que todos os dados que foram lidos do fluxo, mas ainda não foram consumidos, são removidos e o leitor de fluxo é redefinido para a posição inicial. Esse recurso é útil quando é necessário ignorar todos os dados não lidos e começar a ler a partir do início do fluxo novamente, descartando qualquer informação não processada anteriormente.
System.IO.StreamReader.DiscardBufferedData em C# (CSharp) - 22 exemplos encontrados. Esses são os exemplos do mundo real mais bem avaliados de System.IO.StreamReader.DiscardBufferedData em C# (CSharp) extraídos de projetos de código aberto. Você pode avaliar os exemplos para nos ajudar a melhorar a qualidade deles.