แก้ไข

แชร์ผ่าน


MulticastDelegate.Equals(Object) Method

Definition

Determines whether this multicast delegate and the specified object are equal.

public:
 override bool Equals(System::Object ^ obj);
public override sealed bool Equals (object obj);
public override sealed bool Equals (object? obj);
override this.Equals : obj -> bool
Public Overrides NotOverridable Function Equals (obj As Object) As Boolean

Parameters

obj
Object

The object to compare with this instance.

Returns

true if obj and this instance have the same invocation lists; otherwise, false.

Exceptions

Cannot create an instance of an abstract class, or this member was invoked with a late-binding mechanism.

Remarks

Two delegates are equal if they are not null and are of exactly the 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 corresponding element 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.

Applies to