InvalidUTF16Exception Summary Represents an exception for an invalid UTF-16 byte sequence. Description Represents an exception for an invalid UTF-16 byte sequence. Examples Example of how this exception might be encountered 1234567891011import System;import System.Exceptions;import System.Encoding; try { byte[] encoded = [ 0xFF, 0xFE, 0xAC ]; string decoded = UTF16.decode(encoded);}catch(InvalidUTF16Exception e) { Console.error(e);} Methods InvalidUTF16Exception (Constructor)Constructs a System.Exceptions.InvalidUTF16Exception object. Share HTML | BBCode | Direct Link