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

System.Text.ASCIIEncoding.GetString Method

Decodes the specified range of the specified array of bytes as a string of ASCII-encoded characters.

public override string GetString (byte[] bytes, int byteIndex, int byteCount)

Parameters

bytes
A byte array to decode as ASCII-encoded characters.
byteIndex
A int that specifies the first index of bytes from which to decode.
byteCount
A int that specifies the number of elements in bytes to decode.
bytes
Documentation for this section has not yet been entered.

Returns

A string object containing the decoded representation of the range in bytes from byteIndex to byteIndex + byteCount -1 as ASCII-encoded characters.

Exceptions

TypeReason
ArgumentNullExceptionbytes is null.
ArgumentOutOfRangeException

byteIndex < 0.

-or-

byteCount < 0.

-or-

(bytes.Length - byteIndex) < byteCount.

Remarks

Note: This method overrides Encoding.GetString(Byte[]).

Requirements

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