Export (0) Print
Expand All

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
Not applicable.

Parameters

obj

The object to compare with this instance.

Return Value

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

Exception typeCondition

MemberAccessException

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 Server 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 Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0, 2.0, 1.1, 1.0

.NET Compact Framework

Supported in: 2.0, 1.0

XNA Framework

Supported in: 1.0
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

Show:
© 2014 Microsoft