Mono Class Library: System.Xml.XmlTextReader Overview | Members

System.Xml.XmlTextReader.Encoding Property

Gets the encoding of the document. [Edit]

public System.Text.Encoding Encoding { get; }

Value

If the XmlTextReader.ReadState is ReadState.Interactive, a System.Text.Encoding; otherwise null. [Edit]

Remarks

This property is read-only.

If no encoding attribute exists, this property defaults to UTF-8.

[Edit]

Requirements

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