Mono Class Library: System.Delegate Overview | Members

System.Delegate.Equals Method

Determines whether the specified object is equal to the current instance.

public override bool Equals (object obj)

Parameters

obj
The object to compare with the current instance.

Returns

true if obj is equal to the current instance, otherwise false.

Remarks

Two delegates are equal if they are not null and are of the exact same type, their invocation lists contain the same number of elements, and every element in the invocation list of the first delegate is equal to the element in the corresponding position in the invocation list of the second delegate.

Two invocation list elements are equal if they invoke the same instance method on the same target instance, or they invoke the same static method.

Note: This method overrides object.Equals(object) .

Requirements

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