System.IO.StreamReader.CurrentEncoding Property

Gets the current character encoding that the current System.IO.StreamReader object is using.

Syntax

public virtual System.Text.Encoding CurrentEncoding { get; }

Value

The current System.Text.Encoding used by the current reader.

Remarks

For a list of common I/O tasks, see Common I/O Tasks.

Requirements

Namespace: System.IO
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0, 4.0.0.0