NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

MulticastDelegate.Equals

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

[Visual Basic]
Overrides Public Function Equals( _
   ByVal obj As Object _
) As Boolean
[C#]
public override bool Equals(
   object obj
);
[C++]
public: override bool Equals(
   Object* obj
);
[JScript]
public override function Equals(
   obj : Object
) : Boolean;

Parameters

obj
The object to compare with this instance.

Return Value

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

Remarks

Two delegates, whether single- or multi-cast, are equal if they have the same invocation lists. Two invocation lists are considered identical if they have the same order, and the corresponding elements from the two lists represent the same method and target.

The methods and targets are compared for equality in the following way. If the two methods being compared are static, they must be the same method on the same class, in which case the methods and targets are considered equal. If the two methods being compared are instance methods, they must be the same method on the same object, in which case the methods and targets are considered equal. Otherwise the methods and targets are not considered to be equal.

See Also

MulticastDelegate Class | MulticastDelegate Members | System Namespace