Share via


GetChars Method (Byte[])

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

When overridden in a derived class, decodes all the bytes in the specified byte array into a set of characters.

Namespace:  System.Text
Assembly:  mscorlib (in mscorlib.dll)

Syntax

'Declaration
Public Overridable Function GetChars ( _
    bytes As Byte() _
) As Char()
public virtual char[] GetChars(
    byte[] bytes
)
public:
virtual array<wchar_t>^ GetChars(
    array<unsigned char>^ bytes
)
abstract GetChars : 
        bytes:byte[] -> char[] 
override GetChars : 
        bytes:byte[] -> char[] 
public function GetChars(
    bytes : byte[]
) : char[]

Parameters

  • bytes
    Type: array<System. . :: . .Byte> [] () [] []
    The byte array containing the sequence of bytes to decode.

Return Value

Type: array<System. . :: . .Char> [] () [] []
A character array containing the results of decoding the specified sequence of bytes.

Remarks

Encoding..::..GetChars gets characters from an input byte sequence. Encoding..::..GetChars is different than Decoder.GetChars because Encoding expects discrete conversions, while Decoder is designed for multiple passes on a single input stream.

.NET Framework Security

See Also

Reference

Encoding Class

GetChars Overload

System.Text Namespace