System.Text.Encoding.Extensions Represents an ASCII character encoding of Unicode characters. 1 Initializes a new instance of the class. Calculates the number of bytes produced by encoding a set of characters starting at the specified character pointer. The number of bytes produced by encoding the specified characters. A pointer to the first character to encode. The number of characters to encode. is null. is less than zero.-or- The resulting number of bytes is greater than the maximum number that can be returned as an integer. A fallback occurred (see Character Encoding in the .NET Framework for complete explanation)-and- is set to . 1 Calculates the number of bytes produced by encoding a set of characters from the specified character array. The number of bytes produced by encoding the specified characters. The character array containing the set of characters to encode. The index of the first character to encode. The number of characters to encode. is null. or is less than zero.-or- and do not denote a valid range in .-or- The resulting number of bytes is greater than the maximum number that can be returned as an integer. A fallback occurred (see Character Encoding in the .NET Framework for complete explanation)-and- is set to . 1 Calculates the number of bytes produced by encoding the characters in the specified . The number of bytes produced by encoding the specified characters. The containing the set of characters to encode. is null. The resulting number of bytes is greater than the maximum number that can be returned as an integer. A fallback occurred (see Character Encoding in the .NET Framework for complete explanation)-and- is set to . 1 Encodes a set of characters starting at the specified character pointer into a sequence of bytes that are stored starting at the specified byte pointer. The actual number of bytes written at the location indicated by . A pointer to the first character to encode. The number of characters to encode. A pointer to the location at which to start writing the resulting sequence of bytes. The maximum number of bytes to write. is null.-or- is null. or is less than zero. is less than the resulting number of bytes. A fallback occurred (see Character Encoding in the .NET Framework for complete explanation)-and- is set to . 1 Encodes a set of characters from the specified character array into the specified byte array. The actual number of bytes written into . The character array containing the set of characters to encode. The index of the first character to encode. The number of characters to encode. The byte array to contain the resulting sequence of bytes. The index at which to start writing the resulting sequence of bytes. is null.-or- is null. or or is less than zero.-or- and do not denote a valid range in .-or- is not a valid index in . does not have enough capacity from to the end of the array to accommodate the resulting bytes. A fallback occurred (see Character Encoding in the .NET Framework for complete explanation)-and- is set to . 1 Encodes a set of characters from the specified into the specified byte array. The actual number of bytes written into . The containing the set of characters to encode. The index of the first character to encode. The number of characters to encode. The byte array to contain the resulting sequence of bytes. The index at which to start writing the resulting sequence of bytes. is null.-or- is null. or or is less than zero.-or- and do not denote a valid range in .-or- is not a valid index in . does not have enough capacity from to the end of the array to accommodate the resulting bytes. A fallback occurred (see Character Encoding in the .NET Framework for complete explanation)-and- is set to . 1 Calculates the number of characters produced by decoding a sequence of bytes starting at the specified byte pointer. The number of characters produced by decoding the specified sequence of bytes. A pointer to the first byte to decode. The number of bytes to decode. is null. is less than zero.-or- The resulting number of bytes is greater than the maximum number that can be returned as an integer. A fallback occurred (see Character Encoding in the .NET Framework for complete explanation)-and- is set to . 1 Calculates the number of characters produced by decoding a sequence of bytes from the specified byte array. The number of characters produced by decoding the specified sequence of bytes. The byte array containing the sequence of bytes to decode. The index of the first byte to decode. The number of bytes to decode. is null. or is less than zero.-or- and do not denote a valid range in .-or- The resulting number of bytes is greater than the maximum number that can be returned as an integer. A fallback occurred (see Character Encoding in the .NET Framework for complete explanation)-and- is set to . 1 Decodes a sequence of bytes starting at the specified byte pointer into a set of characters that are stored starting at the specified character pointer. The actual number of characters written at the location indicated by . A pointer to the first byte to decode. The number of bytes to decode. A pointer to the location at which to start writing the resulting set of characters. The maximum number of characters to write. is null.-or- is null. or is less than zero. is less than the resulting number of characters. A fallback occurred (see Character Encoding in the .NET Framework for complete explanation)-and- is set to . 1 Decodes a sequence of bytes from the specified byte array into the specified character array. The actual number of characters written into . The byte array containing the sequence of bytes to decode. The index of the first byte to decode. The number of bytes to decode. The character array to contain the resulting set of characters. The index at which to start writing the resulting set of characters. is null.-or- is null. or or is less than zero.-or- and do not denote a valid range in .-or- is not a valid index in . does not have enough capacity from to the end of the array to accommodate the resulting characters. A fallback occurred (see Character Encoding in the .NET Framework for complete explanation)-and- is set to . 1 Obtains a decoder that converts an ASCII encoded sequence of bytes into a sequence of Unicode characters. A that converts an ASCII encoded sequence of bytes into a sequence of Unicode characters. 1 Obtains an encoder that converts a sequence of Unicode characters into an ASCII encoded sequence of bytes. An that converts a sequence of Unicode characters into an ASCII encoded sequence of bytes. 1 Calculates the maximum number of bytes produced by encoding the specified number of characters. The maximum number of bytes produced by encoding the specified number of characters. The number of characters to encode. is less than zero.-or- The resulting number of bytes is greater than the maximum number that can be returned as an integer. 1 Calculates the maximum number of characters produced by decoding the specified number of bytes. The maximum number of characters produced by decoding the specified number of bytes. The number of bytes to decode. is less than zero.-or- The resulting number of bytes is greater than the maximum number that can be returned as an integer. 1 Decodes a range of bytes from a byte array into a string. A containing the results of decoding the specified sequence of bytes. The byte array containing the sequence of bytes to decode. The index of the first byte to decode. The number of bytes to decode. is null. or is less than zero.-or- and do not denote a valid range in . A fallback occurred (see Character Encoding in the .NET Framework for complete explanation)-and- is set to . 1 Gets a value indicating whether the current encoding uses single-byte code points. This property is always true. 2 Represents a UTF-16 encoding of Unicode characters. 1 Initializes a new instance of the class. Initializes a new instance of the class. Parameters specify whether to use the big endian byte order and whether the method returns a Unicode byte order mark. true to use the big endian byte order (most significant byte first), or false to use the little endian byte order (least significant byte first). true to specify that the method returns a Unicode byte order mark; otherwise, false. See the Remarks section for more information. Initializes a new instance of the class. Parameters specify whether to use the big endian byte order, whether to provide a Unicode byte order mark, and whether to throw an exception when an invalid encoding is detected. true to use the big endian byte order (most significant byte first); false to use the little endian byte order (least significant byte first). true to specify that the method returns a Unicode byte order mark; otherwise, false. See the Remarks section for more information. true to specify that an exception should be thrown when an invalid encoding is detected; otherwise, false. Determines whether the specified is equal to the current object. true if is an instance of and is equal to the current object; otherwise, false. The object to compare with the current object. 2 Calculates the number of bytes produced by encoding a set of characters from the specified character array. The number of bytes produced by encoding the specified characters. The character array containing the set of characters to encode. The index of the first character to encode. The number of characters to encode. is null (Nothing). or is less than zero.-or- and do not denote a valid range in .-or- The resulting number of bytes is greater than the maximum number that can be returned as an integer. Error detection is enabled, and contains an invalid sequence of characters. A fallback occurred (see Character Encoding in the .NET Framework for fuller explanation)-and- is set to . 1 Calculates the number of bytes produced by encoding the characters in the specified string. The number of bytes produced by encoding the specified characters. The string that contains the set of characters to encode. is null . The resulting number of bytes is greater than the maximum number that can be returned as an integer. Error detection is enabled, and contains an invalid sequence of characters. A fallback occurred (see Character Encoding in the .NET Framework for fuller explanation)-and- is set to . 1 Encodes a set of characters from the specified character array into the specified byte array. The actual number of bytes written into . The character array containing the set of characters to encode. The index of the first character to encode. The number of characters to encode. The byte array to contain the resulting sequence of bytes. The index at which to start writing the resulting sequence of bytes. is null (Nothing).-or- is null (Nothing). or or is less than zero.-or- and do not denote a valid range in .-or- is not a valid index in . Error detection is enabled, and contains an invalid sequence of characters.-or- does not have enough capacity from to the end of the array to accommodate the resulting bytes. A fallback occurred (see Character Encoding in the .NET Framework for fuller explanation)-and- is set to . 1 Encodes a set of characters from the specified into the specified byte array. The actual number of bytes written into . The string containing the set of characters to encode. The index of the first character to encode. The number of characters to encode. The byte array to contain the resulting sequence of bytes. The index at which to start writing the resulting sequence of bytes. is null .-or- is null (Nothing). or or is less than zero.-or- and do not denote a valid range in .-or- is not a valid index in . Error detection is enabled, and contains an invalid sequence of characters.-or- does not have enough capacity from to the end of the array to accommodate the resulting bytes. A fallback occurred (see Character Encoding in the .NET Framework for fuller explanation)-and- is set to . 1 Calculates the number of characters produced by decoding a sequence of bytes from the specified byte array. The number of characters produced by decoding the specified sequence of bytes. The byte array containing the sequence of bytes to decode. The index of the first byte to decode. The number of bytes to decode. is null (Nothing). or is less than zero.-or- and do not denote a valid range in .-or- The resulting number of bytes is greater than the maximum number that can be returned as an integer. Error detection is enabled, and contains an invalid sequence of bytes. A fallback occurred (see Character Encoding in the .NET Framework for fuller explanation)-and- is set to . 1 Decodes a sequence of bytes from the specified byte array into the specified character array. The actual number of characters written into . The byte array containing the sequence of bytes to decode. The index of the first byte to decode. The number of bytes to decode. The character array to contain the resulting set of characters. The index at which to start writing the resulting set of characters. is null (Nothing).-or- is null (Nothing). or or is less than zero.-or- and do not denote a valid range in .-or- is not a valid index in . Error detection is enabled, and contains an invalid sequence of bytes.-or- does not have enough capacity from to the end of the array to accommodate the resulting characters. A fallback occurred (see Character Encoding in the .NET Framework for fuller explanation)-and- is set to . 1 Obtains a decoder that converts a UTF-16 encoded sequence of bytes into a sequence of Unicode characters. A that converts a UTF-16 encoded sequence of bytes into a sequence of Unicode characters. 1 Obtains an encoder that converts a sequence of Unicode characters into a UTF-16 encoded sequence of bytes. A object that converts a sequence of Unicode characters into a UTF-16 encoded sequence of bytes. 1 Returns the hash code for the current instance. The hash code for the current object. 1 Calculates the maximum number of bytes produced by encoding the specified number of characters. The maximum number of bytes produced by encoding the specified number of characters. The number of characters to encode. is less than zero.-or- The resulting number of bytes is greater than the maximum number that can be returned as an integer. A fallback occurred (see Character Encoding in the .NET Framework for fuller explanation)-and- is set to . 1 Calculates the maximum number of characters produced by decoding the specified number of bytes. The maximum number of characters produced by decoding the specified number of bytes. The number of bytes to decode. is less than zero.-or- The resulting number of bytes is greater than the maximum number that can be returned as an integer. A fallback occurred (see Character Encoding in the .NET Framework for fuller explanation)-and- is set to . 1 Returns a Unicode byte order mark encoded in UTF-16 format, if the constructor for this instance requests a byte order mark. A byte array containing the Unicode byte order mark, if the object is configured to supply one. Otherwise, this method returns a zero-length byte array. 1 Decodes a range of bytes from a byte array into a string. A object containing the results of decoding the specified sequence of bytes. The byte array containing the sequence of bytes to decode. The index of the first byte to decode. The number of bytes to decode. is null (Nothing). or is less than zero.-or- and do not denote a valid range in . Error detection is enabled, and contains an invalid sequence of bytes. A fallback occurred (see Character Encoding in the .NET Framework for fuller explanation)-and- is set to . 1 Represents a UTF-32 encoding of Unicode characters. 1 Initializes a new instance of the class. Initializes a new instance of the class. Parameters specify whether to use the big endian byte order and whether the method returns a Unicode Unicode byte order mark. true to use the big endian byte order (most significant byte first), or false to use the little endian byte order (least significant byte first). true to specify that a Unicode byte order mark is provided; otherwise, false. Initializes a new instance of the class. Parameters specify whether to use the big endian byte order, whether to provide a Unicode byte order mark, and whether to throw an exception when an invalid encoding is detected. true to use the big endian byte order (most significant byte first), or false to use the little endian byte order (least significant byte first). true to specify that a Unicode byte order mark is provided; otherwise, false. true to specify that an exception should be thrown when an invalid encoding is detected; otherwise, false. Determines whether the specified is equal to the current object. true if is an instance of and is equal to the current object; otherwise, false. The to compare with the current object. 2 Calculates the number of bytes produced by encoding a set of characters starting at the specified character pointer. The number of bytes produced by encoding the specified characters. A pointer to the first character to encode. The number of characters to encode. is null. is less than zero.-or- The resulting number of bytes is greater than the maximum number that can be returned as an integer. Error detection is enabled, and contains an invalid sequence of characters. A fallback occurred (see Character Encoding in the .NET Framework for complete explanation)-and- is set to . 1 Calculates the number of bytes produced by encoding a set of characters from the specified character array. The number of bytes produced by encoding the specified characters. The character array containing the set of characters to encode. The index of the first character to encode. The number of characters to encode. is null. or is less than zero.-or- and do not denote a valid range in .-or- The resulting number of bytes is greater than the maximum number that can be returned as an integer. Error detection is enabled, and contains an invalid sequence of characters. A fallback occurred (see Character Encoding in the .NET Framework for complete explanation)-and- is set to . 1 Calculates the number of bytes produced by encoding the characters in the specified . The number of bytes produced by encoding the specified characters. The containing the set of characters to encode. is null. The resulting number of bytes is greater than the maximum number that can be returned as an integer. Error detection is enabled, and contains an invalid sequence of characters. A fallback occurred (see Character Encoding in the .NET Framework for complete explanation)-and- is set to . 1 Encodes a set of characters starting at the specified character pointer into a sequence of bytes that are stored starting at the specified byte pointer. The actual number of bytes written at the location indicated by the parameter. A pointer to the first character to encode. The number of characters to encode. A pointer to the location at which to start writing the resulting sequence of bytes. The maximum number of bytes to write. is null.-or- is null. or is less than zero. Error detection is enabled, and contains an invalid sequence of characters.-or- is less than the resulting number of bytes. A fallback occurred (see Character Encoding in the .NET Framework for complete explanation)-and- is set to . 1 Encodes a set of characters from the specified character array into the specified byte array. The actual number of bytes written into . The character array containing the set of characters to encode. The index of the first character to encode. The number of characters to encode. The byte array to contain the resulting sequence of bytes. The index at which to start writing the resulting sequence of bytes. is null.-or- is null. or or is less than zero.-or- and do not denote a valid range in .-or- is not a valid index in . Error detection is enabled, and contains an invalid sequence of characters.-or- does not have enough capacity from to the end of the array to accommodate the resulting bytes. A fallback occurred (see Character Encoding in the .NET Framework for complete explanation)-and- is set to . 1 Encodes a set of characters from the specified into the specified byte array. The actual number of bytes written into . The containing the set of characters to encode. The index of the first character to encode. The number of characters to encode. The byte array to contain the resulting sequence of bytes. The index at which to start writing the resulting sequence of bytes. is null.-or- is null. or or is less than zero.-or- and do not denote a valid range in .-or- is not a valid index in . Error detection is enabled, and contains an invalid sequence of characters.-or- does not have enough capacity from to the end of the array to accommodate the resulting bytes. A fallback occurred (see Character Encoding in the .NET Framework for complete explanation)-and- is set to . 1 Calculates the number of characters produced by decoding a sequence of bytes starting at the specified byte pointer. The number of characters produced by decoding the specified sequence of bytes. A pointer to the first byte to decode. The number of bytes to decode. is null. is less than zero.-or- The resulting number of bytes is greater than the maximum number that can be returned as an integer. Error detection is enabled, and contains an invalid sequence of bytes. A fallback occurred (see Character Encoding in the .NET Framework for complete explanation)-and- is set to . 1 Calculates the number of characters produced by decoding a sequence of bytes from the specified byte array. The number of characters produced by decoding the specified sequence of bytes. The byte array containing the sequence of bytes to decode. The index of the first byte to decode. The number of bytes to decode. is null. or is less than zero.-or- and do not denote a valid range in .-or- The resulting number of bytes is greater than the maximum number that can be returned as an integer. Error detection is enabled, and contains an invalid sequence of bytes. A fallback occurred (see Character Encoding in the .NET Framework for complete explanation)-and- is set to . 1 Decodes a sequence of bytes starting at the specified byte pointer into a set of characters that are stored starting at the specified character pointer. The actual number of characters written at the location indicated by . A pointer to the first byte to decode. The number of bytes to decode. A pointer to the location at which to start writing the resulting set of characters. The maximum number of characters to write. is null.-or- is null. or is less than zero. Error detection is enabled, and contains an invalid sequence of bytes.-or- is less than the resulting number of characters. A fallback occurred (see Character Encoding in the .NET Framework for complete explanation)-and- is set to . 1 Decodes a sequence of bytes from the specified byte array into the specified character array. The actual number of characters written into . The byte array containing the sequence of bytes to decode. The index of the first byte to decode. The number of bytes to decode. The character array to contain the resulting set of characters. The index at which to start writing the resulting set of characters. is null.-or- is null. or or is less than zero.-or- and do not denote a valid range in .-or- is not a valid index in . Error detection is enabled, and contains an invalid sequence of bytes.-or- does not have enough capacity from to the end of the array to accommodate the resulting characters. A fallback occurred (see Character Encoding in the .NET Framework for complete explanation)-and- is set to . 1 Obtains a decoder that converts a UTF-32 encoded sequence of bytes into a sequence of Unicode characters. A that converts a UTF-32 encoded sequence of bytes into a sequence of Unicode characters. 1 Obtains an encoder that converts a sequence of Unicode characters into a UTF-32 encoded sequence of bytes. A that converts a sequence of Unicode characters into a UTF-32 encoded sequence of bytes. 1 Returns the hash code for the current instance. The hash code for the current object. 1 Calculates the maximum number of bytes produced by encoding the specified number of characters. The maximum number of bytes produced by encoding the specified number of characters. The number of characters to encode. is less than zero.-or- The resulting number of bytes is greater than the maximum number that can be returned as an integer. A fallback occurred (see Character Encoding in the .NET Framework for complete explanation)-and- is set to . 1 Calculates the maximum number of characters produced by decoding the specified number of bytes. The maximum number of characters produced by decoding the specified number of bytes. The number of bytes to decode. is less than zero.-or- The resulting number of bytes is greater than the maximum number that can be returned as an integer. A fallback occurred (see Character Encoding in the .NET Framework for complete explanation)-and- is set to . 1 Returns a Unicode byte order mark encoded in UTF-32 format, if the constructor for this instance requests a byte order mark. A byte array containing the Unicode byte order mark, if the constructor for this instance requests a byte order mark. Otherwise, this method returns a byte array of length zero. 1 Decodes a range of bytes from a byte array into a string. A containing the results of decoding the specified sequence of bytes. The byte array containing the sequence of bytes to decode. The index of the first byte to decode. The number of bytes to decode. is null. or is less than zero.-or- and do not denote a valid range in . Error detection is enabled, and contains an invalid sequence of bytes. A fallback occurred (see Character Encoding in the .NET Framework for complete explanation)-and- is set to . 1 Represents a UTF-7 encoding of Unicode characters. 1 Initializes a new instance of the class. Initializes a new instance of the class. A parameter specifies whether to allow optional characters. true to specify that optional characters are allowed; otherwise, false. Gets a value indicating whether the specified object is equal to the current object. true if is a object and is equal to the current object; otherwise, false. An object to compare to the current object. 2 Calculates the number of bytes produced by encoding a set of characters starting at the specified character pointer. The number of bytes produced by encoding the specified characters. A pointer to the first character to encode. The number of characters to encode. is null (Nothing in Visual Basic .NET). is less than zero.-or- The resulting number of bytes is greater than the maximum number that can be returned as an int. A fallback occurred (see Character Encoding in the .NET Framework for complete explanation)-and- is set to . 1 Calculates the number of bytes produced by encoding a set of characters from the specified character array. The number of bytes produced by encoding the specified characters. The character array containing the set of characters to encode. The index of the first character to encode. The number of characters to encode. is null (Nothing). or is less than zero.-or- and do not denote a valid range in .-or- The resulting number of bytes is greater than the maximum number that can be returned as an int. A fallback occurred (see Character Encoding in the .NET Framework for complete explanation)-and- is set to . 1 Calculates the number of bytes produced by encoding the characters in the specified object. The number of bytes produced by encoding the specified characters. The object containing the set of characters to encode. is null (Nothing). The resulting number of bytes is greater than the maximum number that can be returned as an int. A fallback occurred (see Character Encoding in the .NET Framework for fuller explanation)-and- is set to . 1 Encodes a set of characters starting at the specified character pointer into a sequence of bytes that are stored starting at the specified byte pointer. The actual number of bytes written at the location indicated by . A pointer to the first character to encode. The number of characters to encode. A pointer to the location at which to start writing the resulting sequence of bytes. The maximum number of bytes to write. is null (Nothing).-or- is null (Nothing). or is less than zero. is less than the resulting number of bytes. A fallback occurred (see Character Encoding in the .NET Framework for fuller explanation)-and- is set to . 1 Encodes a set of characters from the specified character array into the specified byte array. The actual number of bytes written into . The character array containing the set of characters to encode. The index of the first character to encode. The number of characters to encode. The byte array to contain the resulting sequence of bytes. The index at which to start writing the resulting sequence of bytes. is null (Nothing).-or- is null (Nothing). or or is less than zero.-or- and do not denote a valid range in .-or- is not a valid index in . does not have enough capacity from to the end of the array to accommodate the resulting bytes. A fallback occurred (see Character Encoding in the .NET Framework for fuller explanation)-and- is set to . 1 Encodes a set of characters from the specified into the specified byte array. The actual number of bytes written into . The containing the set of characters to encode. The index of the first character to encode. The number of characters to encode. The byte array to contain the resulting sequence of bytes. The index at which to start writing the resulting sequence of bytes. is null (Nothing).-or- is null (Nothing). or or is less than zero.-or- and do not denote a valid range in .-or- is not a valid index in . does not have enough capacity from to the end of the array to accommodate the resulting bytes. A fallback occurred (see Character Encoding in the .NET Framework for fuller explanation)-and- is set to . 1 Calculates the number of characters produced by decoding a sequence of bytes starting at the specified byte pointer. The number of characters produced by decoding the specified sequence of bytes. A pointer to the first byte to decode. The number of bytes to decode. is null (Nothing). is less than zero.-or- The resulting number of characters is greater than the maximum number that can be returned as an int. A fallback occurred (see Character Encoding in the .NET Framework for fuller explanation)-and- is set to . 1 Calculates the number of characters produced by decoding a sequence of bytes from the specified byte array. The number of characters produced by decoding the specified sequence of bytes. The byte array containing the sequence of bytes to decode. The index of the first byte to decode. The number of bytes to decode. is null (Nothing). or is less than zero.-or- and do not denote a valid range in .-or- The resulting number of characters is greater than the maximum number that can be returned as an int. A fallback occurred (see Character Encoding in the .NET Framework for complete explanation)-and- is set to . 1 Decodes a sequence of bytes starting at the specified byte pointer into a set of characters that are stored starting at the specified character pointer. The actual number of characters written at the location indicated by . A pointer to the first byte to decode. The number of bytes to decode. A pointer to the location at which to start writing the resulting set of characters. The maximum number of characters to write. is null (Nothing).-or- is null (Nothing). or is less than zero. is less than the resulting number of characters. A fallback occurred (see Character Encoding in the .NET Framework for complete explanation)-and- is set to . 1 Decodes a sequence of bytes from the specified byte array into the specified character array. The actual number of characters written into . The byte array containing the sequence of bytes to decode. The index of the first byte to decode. The number of bytes to decode. The character array to contain the resulting set of characters. The index at which to start writing the resulting set of characters. is null (Nothing).-or- is null (Nothing). or or is less than zero.-or- and do not denote a valid range in .-or- is not a valid index in . does not have enough capacity from to the end of the array to accommodate the resulting characters. A fallback occurred (see Character Encoding in the .NET Framework for complete explanation)-and- is set to . 1 Obtains a decoder that converts a UTF-7 encoded sequence of bytes into a sequence of Unicode characters. A that converts a UTF-7 encoded sequence of bytes into a sequence of Unicode characters. 1 Obtains an encoder that converts a sequence of Unicode characters into a UTF-7 encoded sequence of bytes. A that converts a sequence of Unicode characters into a UTF-7 encoded sequence of bytes. 1 Returns the hash code for the current object. A 32-bit signed integer hash code. 1 Calculates the maximum number of bytes produced by encoding the specified number of characters. The maximum number of bytes produced by encoding the specified number of characters. The number of characters to encode. is less than zero.-or- The resulting number of bytes is greater than the maximum number that can be returned as an int. A fallback occurred (see Character Encoding in the .NET Framework for complete explanation)-and- is set to . 1 Calculates the maximum number of characters produced by decoding the specified number of bytes. The maximum number of characters produced by decoding the specified number of bytes. The number of bytes to decode. is less than zero.-or- The resulting number of characters is greater than the maximum number that can be returned as an int. A fallback occurred (see Character Encoding in the .NET Framework for complete explanation)-and- is set to . 1 Decodes a range of bytes from a byte array into a string. A containing the results of decoding the specified sequence of bytes. The byte array containing the sequence of bytes to decode. The index of the first byte to decode. The number of bytes to decode. is null (Nothing). or is less than zero.-or- and do not denote a valid range in . A fallback occurred (see Character Encoding in the .NET Framework for fuller explanation)-and- is set to . 1 Represents a UTF-8 encoding of Unicode characters. 1 Initializes a new instance of the class. Initializes a new instance of the class. A parameter specifies whether to provide a Unicode byte order mark. true to specify that the method returns a Unicode byte order mark; otherwise, false. See the Remarks section for more information. Initializes a new instance of the class. Parameters specify whether to provide a Unicode byte order mark and whether to throw an exception when an invalid encoding is detected. true to specify that the method should return a Unicode byte order mark; otherwise, false. See the Remarks section for more information. true to throw an exception when an invalid encoding is detected; otherwise, false. Determines whether the specified object is equal to the current object. true if is an instance of and is equal to the current object; otherwise, false. The object to compare with the current instance. 2 Calculates the number of bytes produced by encoding a set of characters starting at the specified character pointer. The number of bytes produced by encoding the specified characters. A pointer to the first character to encode. The number of characters to encode. is null. is less than zero.-or- The resulting number of bytes is greater than the maximum number that can be returned as an integer. Error detection is enabled, and contains an invalid sequence of characters. A fallback occurred (see Character Encoding in the .NET Framework for a complete explanation)-and- is set to . 1 Calculates the number of bytes produced by encoding a set of characters from the specified character array. The number of bytes produced by encoding the specified characters. The character array containing the set of characters to encode. The index of the first character to encode. The number of characters to encode. is null. or is less than zero.-or- and do not denote a valid range in .-or- The resulting number of bytes is greater than the maximum number that can be returned as an integer. Error detection is enabled, and contains an invalid sequence of characters. A fallback occurred (see Character Encoding in the .NET Framework for complete explanation)-and-The property is set to . 1 Calculates the number of bytes produced by encoding the characters in the specified . The number of bytes produced by encoding the specified characters. The containing the set of characters to encode. is null. The resulting number of bytes is greater than the maximum number that can be returned as an integer. Error detection is enabled, and contains an invalid sequence of characters. A fallback occurred (see Character Encoding in the .NET Framework for complete explanation)-and- is set to . 1 Encodes a set of characters starting at the specified character pointer into a sequence of bytes that are stored starting at the specified byte pointer. The actual number of bytes written at the location indicated by . A pointer to the first character to encode. The number of characters to encode. A pointer to the location at which to start writing the resulting sequence of bytes. The maximum number of bytes to write. is null.-or- is null. or is less than zero. Error detection is enabled, and contains an invalid sequence of characters.-or- is less than the resulting number of bytes. A fallback occurred (see Character Encoding in the .NET Framework for complete explanation)-and- is set to . 1 Encodes a set of characters from the specified character array into the specified byte array. The actual number of bytes written into . The character array containing the set of characters to encode. The index of the first character to encode. The number of characters to encode. The byte array to contain the resulting sequence of bytes. The index at which to start writing the resulting sequence of bytes. is null.-or- is null. or or is less than zero.-or- and do not denote a valid range in .-or- is not a valid index in . Error detection is enabled, and contains an invalid sequence of characters.-or- does not have enough capacity from to the end of the array to accommodate the resulting bytes. A fallback occurred (see Character Encoding in the .NET Framework for complete explanation)-and- is set to . 1 Encodes a set of characters from the specified into the specified byte array. The actual number of bytes written into . The containing the set of characters to encode. The index of the first character to encode. The number of characters to encode. The byte array to contain the resulting sequence of bytes. The index at which to start writing the resulting sequence of bytes. is null.-or- is null. or or is less than zero.-or- and do not denote a valid range in .-or- is not a valid index in . Error detection is enabled, and contains an invalid sequence of characters.-or- does not have enough capacity from to the end of the array to accommodate the resulting bytes. A fallback occurred (see Character Encoding in the .NET Framework for complete explanation)-and- is set to . 1 Calculates the number of characters produced by decoding a sequence of bytes starting at the specified byte pointer. The number of characters produced by decoding the specified sequence of bytes. A pointer to the first byte to decode. The number of bytes to decode. is null. is less than zero.-or- The resulting number of bytes is greater than the maximum number that can be returned as an integer. Error detection is enabled, and contains an invalid sequence of bytes. A fallback occurred (see Character Encoding in the .NET Framework for complete explanation)-and- is set to . 1 Calculates the number of characters produced by decoding a sequence of bytes from the specified byte array. The number of characters produced by decoding the specified sequence of bytes. The byte array containing the sequence of bytes to decode. The index of the first byte to decode. The number of bytes to decode. is null. or is less than zero.-or- and do not denote a valid range in .-or- The resulting number of bytes is greater than the maximum number that can be returned as an integer. Error detection is enabled, and contains an invalid sequence of bytes. A fallback occurred (see Character Encoding in the .NET Framework for complete explanation)-and- is set to . 1 Decodes a sequence of bytes starting at the specified byte pointer into a set of characters that are stored starting at the specified character pointer. The actual number of characters written at the location indicated by . A pointer to the first byte to decode. The number of bytes to decode. A pointer to the location at which to start writing the resulting set of characters. The maximum number of characters to write. is null.-or- is null. or is less than zero. Error detection is enabled, and contains an invalid sequence of bytes.-or- is less than the resulting number of characters. A fallback occurred (see Character Encoding in the .NET Framework for complete explanation)-and- is set to . 1 Decodes a sequence of bytes from the specified byte array into the specified character array. The actual number of characters written into . The byte array containing the sequence of bytes to decode. The index of the first byte to decode. The number of bytes to decode. The character array to contain the resulting set of characters. The index at which to start writing the resulting set of characters. is null.-or- is null. or or is less than zero.-or- and do not denote a valid range in .-or- is not a valid index in . Error detection is enabled, and contains an invalid sequence of bytes.-or- does not have enough capacity from to the end of the array to accommodate the resulting characters. A fallback occurred (see Character Encoding in the .NET Framework for complete explanation)-and- is set to . 1 Obtains a decoder that converts a UTF-8 encoded sequence of bytes into a sequence of Unicode characters. A decoder that converts a UTF-8 encoded sequence of bytes into a sequence of Unicode characters. 1 Obtains an encoder that converts a sequence of Unicode characters into a UTF-8 encoded sequence of bytes. A that converts a sequence of Unicode characters into a UTF-8 encoded sequence of bytes. 1 Returns the hash code for the current instance. The hash code for the current instance. 1 Calculates the maximum number of bytes produced by encoding the specified number of characters. The maximum number of bytes produced by encoding the specified number of characters. The number of characters to encode. is less than zero.-or- The resulting number of bytes is greater than the maximum number that can be returned as an integer. A fallback occurred (see Character Encoding in the .NET Framework for complete explanation)-and- is set to . 1 Calculates the maximum number of characters produced by decoding the specified number of bytes. The maximum number of characters produced by decoding the specified number of bytes. The number of bytes to decode. is less than zero.-or- The resulting number of bytes is greater than the maximum number that can be returned as an integer. A fallback occurred (see Character Encoding in the .NET Framework for complete explanation)-and- is set to . 1 Returns a Unicode byte order mark encoded in UTF-8 format, if the encoding object is configured to supply one. A byte array containing the Unicode byte order mark, if the encoding object is configured to supply one. Otherwise, this method returns a zero-length byte array. 1 Decodes a range of bytes from a byte array into a string. A containing the results of decoding the specified sequence of bytes. The byte array containing the sequence of bytes to decode. The index of the first byte to decode. The number of bytes to decode. is null. or is less than zero.-or- and do not denote a valid range in . Error detection is enabled, and contains an invalid sequence of bytes. A fallback occurred (see Character Encoding in the .NET Framework for complete explanation)-and- is set to . 1