Encoding Class |
Namespace: System.Text
[SerializableAttribute] public abstract class Encoding : ICloneable
The Encoding type exposes the following members.
Name | Description | |
---|---|---|
Equals | Determines whether the specified Object is equal to the current instance. (Overrides ObjectEquals(Object).) | |
GetByteCount(Char) | When overridden in a derived class, calculates the number of bytes produced by encoding all the characters in the specified character array. | |
GetByteCount(String) | When overridden in a derived class, calculates the number of bytes produced by encoding the characters in the specified string. | |
GetByteCount(Char*, Int32) | When overridden in a derived class, calculates the number of bytes produced by encoding a set of characters starting at the specified character pointer. | |
GetByteCount(Char, Int32, Int32) | When overridden in a derived class, calculates the number of bytes produced by encoding a set of characters from the specified character array. | |
GetBytes(Char) | When overridden in a derived class, encodes all the characters in the specified character array into a sequence of bytes. | |
GetBytes(String) | When overridden in a derived class, encodes all the characters in the specified string into a sequence of bytes. | |
GetBytes(Char, Int32, Int32) | When overridden in a derived class, encodes a set of characters from the specified character array into a sequence of bytes. | |
GetBytes(Char*, Int32, Byte*, Int32) | When overridden in a derived class, 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. | |
GetBytes(Char, Int32, Int32, Byte, Int32) | When overridden in a derived class, encodes a set of characters from the specified character array into the specified byte array. | |
GetBytes(String, Int32, Int32, Byte, Int32) | When overridden in a derived class, encodes a set of characters from the specified string into the specified byte array. | |
GetCharCount(Byte) | When overridden in a derived class, calculates the number of characters produced by decoding all the bytes in the specified byte array. | |
GetCharCount(Byte*, Int32) | When overridden in a derived class, calculates the number of characters produced by decoding a sequence of bytes starting at the specified byte pointer. | |
GetCharCount(Byte, Int32, Int32) | When overridden in a derived class, calculates the number of characters produced by decoding a sequence of bytes from the specified byte array. | |
GetChars(Byte) | When overridden in a derived class, decodes all the bytes in the specified byte array into a set of characters. | |
GetChars(Byte, Int32, Int32) | When overridden in a derived class, decodes a sequence of bytes from the specified byte array into a set of characters. | |
GetChars(Byte*, Int32, Char*, Int32) | When overridden in a derived class, 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. | |
GetChars(Byte, Int32, Int32, Char, Int32) | When overridden in a derived class, decodes a sequence of bytes from the specified byte array into the specified character array. | |
GetHashCode | Returns the hash code for the current instance. (Overrides ObjectGetHashCode.) | |
GetString(Byte) | When overridden in a derived class, decodes all the bytes in the specified byte array into a string. | |
GetString(Byte, Int32, Int32) | When overridden in a derived class, decodes a sequence of bytes from the specified byte array into a string. | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
ToString | Returns a string that represents the current object. (Inherited from Object.) |
Name | Description | |
---|---|---|
ASCII | Gets an encoding for the ASCII (7-bit) character set. | |
BigEndianUnicode | Gets an encoding for the UTF-16 format that uses the big endian byte order. | |
Unicode | Gets an encoding for the UTF-16 format using the little endian byte order. | |
UTF7 | Gets an encoding for the UTF-7 format. | |
UTF8 | Gets an encoding for the UTF-8 format. |