MulticastDelegate.Equals Method (Object)

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

Namespace: System
Assembly: mscorlib (in mscorlib.dll)

public override sealed bool Equals (
	Object obj
public final boolean Equals (
	Object obj
public override final function Equals (
	obj : Object
) : boolean



The object to compare with this instance.

Return Value

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

Exception typeCondition


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

Two delegates are equal if they are not a null reference (Nothing in Visual Basic) 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.

Windows 98, Windows 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.

.NET Framework

Supported in: 2.0, 1.1, 1.0

.NET Compact Framework

Supported in: 2.0, 1.0