RuntimeTypeHandle.Equals 方法

定义

指示两个 RuntimeTypeHandle 结构是否相等。Indicates whether two RuntimeTypeHandle structures are equal.

重载

Equals(Object)

指示指定的对象是否等于当前的 RuntimeTypeHandle 结构。Indicates whether the specified object is equal to the current RuntimeTypeHandle structure.

Equals(RuntimeTypeHandle)

指示指定的 RuntimeTypeHandle 结构是否等于当前的 RuntimeTypeHandle 结构。Indicates whether the specified RuntimeTypeHandle structure is equal to the current RuntimeTypeHandle structure.

Equals(Object)

指示指定的对象是否等于当前的 RuntimeTypeHandle 结构。Indicates whether the specified object is equal to the current RuntimeTypeHandle structure.

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

要与当前实例进行比较的对象。An object to compare to the current instance.

返回

如果 trueobj 结构并且与此实例的值相等,则为 RuntimeTypeHandle;否则为 falsetrue if obj is a RuntimeTypeHandle structure and is equal to the value of this instance; otherwise, false.

Equals(RuntimeTypeHandle)

指示指定的 RuntimeTypeHandle 结构是否等于当前的 RuntimeTypeHandle 结构。Indicates whether the specified RuntimeTypeHandle structure is equal to the current RuntimeTypeHandle structure.

public:
 bool Equals(RuntimeTypeHandle handle);
public bool Equals (RuntimeTypeHandle handle);
override this.Equals : RuntimeTypeHandle -> bool
Public Function Equals (handle As RuntimeTypeHandle) As Boolean

参数

handle
RuntimeTypeHandle

要与当前实例进行比较的 RuntimeTypeHandle 结构。The RuntimeTypeHandle structure to compare to the current instance.

返回

如果 true 的值等于此实例的值,则为 handle;否则为 falsetrue if the value of handle is equal to the value of this instance; otherwise, false.

适用于