MulticastDelegate.Equality(MulticastDelegate, MulticastDelegate) 연산자

정의

MulticastDelegate 개체가 같은지 여부를 확인합니다.

public:
 static bool operator ==(MulticastDelegate ^ d1, MulticastDelegate ^ d2);
public static bool operator ==(MulticastDelegate d1, MulticastDelegate d2);
public static bool operator ==(MulticastDelegate? d1, MulticastDelegate? d2);
static member ( = ) : MulticastDelegate * MulticastDelegate -> bool
Public Shared Operator == (d1 As MulticastDelegate, d2 As MulticastDelegate) As Boolean

매개 변수

d1
MulticastDelegate

왼쪽 피연산자입니다.

d2
MulticastDelegate

오른쪽 피연산자입니다.

반품

호출 목록이 같으면 이고 , 그렇지 않으면 .입니다.

예외

추상 클래스의 인스턴스를 만들 수 없거나 이 멤버가 런타임에 바인딩 메커니즘을 사용하여 호출되었습니다.

설명

두 대리자가 동일하지 않고 null 정확히 동일한 형식이면 해당 호출 목록에는 동일한 수의 요소가 포함되며 첫 번째 대리자 호출 목록의 모든 요소는 두 번째 대리자 호출 목록의 해당 요소와 같습니다.

두 호출 목록 요소는 동일한 대상 인스턴스에서 동일한 인스턴스 메서드를 호출하거나 동일한 정적 메서드를 호출하는 경우 동일합니다.

이 연산자에 해당하는 메서드는 다음과 같습니다. MulticastDelegate.Equals(Object)

적용 대상