Create a new instance of the Decoder class. : Decoder « Development Class « C# / C Sharp
- C# / C Sharp
- Development Class
- Decoder
Create a new instance of the Decoder class.
using System;
using System.Text;
class EncoderExample {
public static void Main() {
UnicodeEncoding uni = new UnicodeEncoding();
Decoder dec1 = uni.GetDecoder();
Decoder dec2 = Encoding.Unicode.GetDecoder();
Console.WriteLine(dec1.ToString());
Console.WriteLine(dec2.ToString());
Console.WriteLine(dec1.GetHashCode());
Console.WriteLine(dec2.GetHashCode());
}
}
Related examples in the same category