Encoding Methods
The methods of the Encoding class are listed here. For a complete list of Encoding class members, see the Encoding Members topic.
Public Methods
![]() Convert Supported by the .NET Compact Framework. | Overloaded. Converts a byte array from one encoding to another. |
Equals Supported by the .NET Compact Framework. | Overridden. Determines whether the current instance and the specified Object represent the same type and value. |
GetByteCount Supported by the .NET Compact Framework. | Overloaded. Calculates the number of bytes required to encode a specified character array. |
GetBytes Supported by the .NET Compact Framework. | Overloaded. Encodes all or part of a specified String or character array into a byte array. |
GetCharCount Supported by the .NET Compact Framework. | Overloaded. Calculates the number of characters produced by decoding an array of bytes. |
GetChars Supported by the .NET Compact Framework. | Overloaded. Decodes a byte array into an array of characters. |
GetDecoder Supported by the .NET Compact Framework. | Returns a Decoder for this encoding. |
GetEncoder Supported by the .NET Compact Framework. | An Encoder for this encoding. |
![]() GetEncoding Supported by the .NET Compact Framework. | Overloaded. Returns an Encoding for the specified code page value or name. |
GetHashCode Supported by the .NET Compact Framework. | Overridden. Returns the hash code for this instance. |
GetMaxByteCount Supported by the .NET Compact Framework. | When overridden in a derived class, returns the maximum number of bytes required to encode a given number of characters. |
GetMaxCharCount Supported by the .NET Compact Framework. | When overridden in a derived class, returns the maximum number of characters produced by decoding a given number of bytes. |
GetPreamble Supported by the .NET Compact Framework. | Returns a set of bytes used at the beginning of a stream to determine which encoding a file was created with. This can include the Unicode byte order mark. |
GetString Supported by the .NET Compact Framework. | Overloaded. Decodes the specified byte array into a string. |
GetType (inherited from Object)
Supported by the .NET Compact Framework. | Gets the Type of the current instance. |
ToString (inherited from Object)
Supported by the .NET Compact Framework. | Returns a String that represents the current Object. |
Protected Methods
Finalize (inherited from Object)
Supported by the .NET Compact Framework. | Overridden. Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
In C# and C++, finalizers are expressed using destructor syntax. |
MemberwiseClone (inherited from Object)
Supported by the .NET Compact Framework. | Creates a shallow copy of the current Object. |
