When overridden in a derived class, decodes a sequence of bytes from the specified byte array into a string.
A string that contains the results of decoding the specified sequence of bytes.
Type Reason ArgumentNullException bytes is null. ArgumentOutOfRangeException index and count do not denote a valid range in bytes.
If the data to be converted is available only in sequential blocks (such as data read from a stream) or if the amount of data is so large that it needs to be divided into smaller blocks, the application should use the System.Text.Decoder or the System.Text.Encoder provided by the Encoding.GetDecoder method or the Encoding.GetEncoder method, respectively, of a derived class.
See the Remarks section of the Encoding.GetChars(Byte[], int, int) reference topic for a discussion of decoding techniques and considerations.