EventToken.Equals 方法

定义

指示当前实例是否等于指定对象。Indicates whether the current instance is equal to a specified object.

重载

Equals(Object)

检查给定对象是否为 EventToken 的实例和是否等于此实例。Checks if the given object is an instance of EventToken and is equal to this instance.

Equals(EventToken)

指示当前实例是否等于指定的 EventTokenIndicates whether the current instance is equal to the specified EventToken.

Equals(Object)

检查给定对象是否为 EventToken 的实例和是否等于此实例。Checks if the given object is an instance of EventToken and is equal to this instance.

public:
 override bool Equals(System::Object ^ obj);
public override bool Equals (object obj);
override this.Equals : obj -> bool
Public Overrides Function Equals (obj As Object) As Boolean

参数

obj
Object

与该实例进行比较的对象。The object to be compared with this instance.

返回

如果 objtrue 的实例并等于当前实例,则为 EventToken;否则,为 falsetrue if obj is an instance of EventToken and equals the current instance; otherwise, false.

Equals(EventToken)

指示当前实例是否等于指定的 EventTokenIndicates whether the current instance is equal to the specified EventToken.

public:
 bool Equals(System::Reflection::Emit::EventToken obj);
public bool Equals (System.Reflection.Emit.EventToken obj);
override this.Equals : System.Reflection.Emit.EventToken -> bool
Public Function Equals (obj As EventToken) As Boolean

参数

obj
EventToken

要与当前实例进行比较的 EventTokenThe EventToken to compare to the current instance.

返回

如果 obj 的值等于当前实例的值,则为 true;否则为 falsetrue if the value of obj is equal to the value of the current instance; otherwise, false.

适用于