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

System.Text.Encoding.GetString Method

Decodes the specified range of the specified byte array.

public virtual string GetString (byte[] bytes, int index, int count)

Parameters

bytes
The byte array to decode.
index
A int containing the starting index of bytes to decode.
count
A int containing the number of bytes to decode.

Returns

A string containing the decoded representation of the range of bytes from index to index + count.

Exceptions

TypeReason
ArgumentNullExceptionbytes is null.
ArgumentOutOfRangeExceptionindex and count do not denote a valid range in bytes.

Remarks

Operation
As described above.

Note to Inheritors
This method is overridden by particular character encodings.

Requirements

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