FieldToken.Equals 方法

定义

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

重载

Equals(Object)

确定对象是否是 FieldToken 的实例并等于该实例。Determines if an object is an instance of FieldToken and is equal to this instance.

Equals(FieldToken)

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

Equals(Object)

确定对象是否是 FieldToken 的实例并等于该实例。Determines if an object is an instance of FieldToken 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

与此 FieldToken 进行比较的对象。The object to compare to this FieldToken.

返回

Boolean

如果 objFieldToken 的实例并且等于此对象,则为 true;否则为 falsetrue if obj is an instance of FieldToken and is equal to this object; otherwise, false.

适用于

Equals(FieldToken)

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

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

参数

obj
FieldToken

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

返回

Boolean

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

适用于