Mono Class Library: System.Text.UnicodeEncoding Overview | Members

System.Text.UnicodeEncoding.GetPreamble Method

Returns the bytes used at the beginning of a System.IO.Stream instance to determine which System.Text.Encoding implementation the stream was created with. [Edit]

public override byte[] GetPreamble ()

Returns

A byte array that identifies the System.Text.Encoding implementation used to create a System.IO.Stream . [Edit]

Remarks

UnicodeEncoding.GetPreamble returns the Unicode byte order mark (U+FEFF) in either big-endian or little-endian order, according the ordering that the current instance was initialized with.

Note: This method overrides Encoding.GetPreamble.

[Edit]

Requirements

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