StreamWriter.CurrentEncoding Property
Gets the Encoding which this StreamWriter currently uses to write output.
Namespace: System.IO
Assembly: mscorlib (in mscorlib.dll)
Syntax
public virtual Encoding CurrentEncoding { get; }
Property Value
The Encoding that has been set for this StreamWriter in its constructor. The default is UTF8Encoding.
Version Information
Available in the .NET Micro Framework versions 3.0, 4.0, 4.1, and 4.2.