Click or drag to resize
EncodingGetChars Method (Byte, Int32, Int32)
When overridden in a derived class, decodes a sequence of bytes from the specified byte array into a set of characters.

Namespace: System.Text
Assembly: mscorlib (in mscorlib.dll) Version: 4.0.0.0
Syntax
C#
public virtual char[] GetChars(
	byte[] bytes,
	int index,
	int count
)

Parameters

bytes
Type: SystemByte
The byte array containing the sequence of bytes to decode.
index
Type: SystemInt32
The index of the first byte to decode.
count
Type: SystemInt32
The number of bytes to decode.

Return Value

Type: Char
A character array containing the results of decoding the specified sequence of bytes.
Exceptions
ExceptionCondition
ArgumentNullExceptionbytes is null.
ArgumentOutOfRangeExceptionindex or count is less than zero.-or- index and count do not denote a valid range in bytes.
DecoderFallbackExceptionA fallback occurred (see Character Encoding in the .NET Framework for complete explanation)-and-DecoderFallback is set to DecoderExceptionFallback.
See Also