Determines whether the specified Object is equal to the current UTF8Encoding object.
using System;
using System.Text;
class UTF8EncodingExample {
public static void Main() {
UTF8Encoding utf8 = new UTF8Encoding();
UTF8Encoding utf8true = new UTF8Encoding(true);
UTF8Encoding utf8truetrue = new UTF8Encoding(true, true);
UTF8Encoding utf8falsetrue = new UTF8Encoding(false, true);
Console.WriteLine(utf8.Equals(utf8));
Console.WriteLine(utf8.Equals(utf8true));
Console.WriteLine(utf8.Equals(utf8truetrue));
Console.WriteLine(utf8.Equals(utf8falsetrue));
}
}
Related examples in the same category