Mono Class Library: System.IO.StringWriter Overview | Members

System.IO.StringWriter.Encoding Property

Gets the System.Text.Encoding in which the output is written. [Edit]

public override System.Text.Encoding Encoding { get; }

Value

The System.Text.Encoding in which the output is written. [Edit]

Remarks

Operation
As described above.

Usage
This property is required in some XML scenarios where a header must be written containing the encoding used by the System.IO.StringWriter. This allows XML code to consume an arbitrary System.IO.StringWriter and generate a correct XML header.

[Edit]

Requirements

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