Decode Method
Definition
Decode(byte[])
Decodes the byte order mark (BOM) in the specified byte array to its corresponding Encoding.
public static Encoding Decode(byte[] bytes)
Parameters
bytesbyte[]The byte array that contains the BOM to decode.
Returns
Exceptions
- ArgumentNullException
bytesis null.- ArgumentException
bytesdoes not contain a recognizable byte order mark.