C# UnicodeEncoding UnicodeEncoding()
Description
UnicodeEncoding UnicodeEncoding()
Initializes a new
instance of the UnicodeEncoding class.
Syntax
UnicodeEncoding.UnicodeEncoding()
has the following syntax.
public UnicodeEncoding()
Example
using System;/*ww w . j a va 2 s .c o m*/
using System.Text;
class UnicodeEncodingExample {
public static void Main() {
UnicodeEncoding unicode = new UnicodeEncoding();
String encodingName = unicode.EncodingName;
Console.WriteLine("Encoding name: " + encodingName);
}
}
The code above generates the following result.