System.Text.UTF8Encoding.Equals Method

Determines whether the specified object is equal to the current System.Text.UTF8Encoding object.

Syntax

public override bool Equals (object value)

Parameters

value
The object to compare with the current instance.

Returns

true if value is an instance of System.Text.UTF8Encoding and is equal to the current object; otherwise, false.

Remarks

Two System.Text.UTF8Encoding objects are considered equal if all of the following conditions are true:

  • Both objects use the same byte order.

  • Both objects provide the byte order mark, or both do not.

  • Both objects throw an exception when encountering invalid encoding, or both do not.

Requirements

Namespace: System.Text
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0, 4.0.0.0