https://learn.microsoft.com/pt-br/dotnet/api/system.io.streamreader.currentencoding?view=netframework-4.8.1&viewFallbackFrom=net-8.0
StreamReader.CurrentEncoding Property (System.IO) | Microsoft Learn
Gets the current character encoding that the current StreamReader object is using.
property systemstreamreaderiomicrosoftlearn