using System;
using System.Text;
class UnicodeEncodingExample {
public static void Main() {
String chars = "Unicode Encoding Example";
UnicodeEncoding Unicode = new UnicodeEncoding();
int byteCount = Unicode.GetByteCount(chars);
Console.WriteLine("{0} bytes needed to encode string.", byteCount);
}
}