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;
True if obj and this instance have the same invocation lists; false otherwise.
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.
MulticastDelegate Class | MulticastDelegate Members | System Namespace