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()); } }