Editar

Compartir vía


RuntimeTypeHandle.Equality Operator

Definition

Indicates whether an object and a RuntimeTypeHandle structure are equal.

Overloads

Equality(Object, RuntimeTypeHandle)

Indicates whether an object and a RuntimeTypeHandle structure are equal.

Equality(RuntimeTypeHandle, Object)

Indicates whether a RuntimeTypeHandle structure is equal to an object.

Equality(Object, RuntimeTypeHandle)

Source:
RuntimeHandles.cs
Source:
RuntimeHandles.cs
Source:
RuntimeHandles.cs

Indicates whether an object and a RuntimeTypeHandle structure are equal.

public:
 static bool operator ==(System::Object ^ left, RuntimeTypeHandle right);
public static bool operator == (object left, RuntimeTypeHandle right);
public static bool operator == (object? left, RuntimeTypeHandle right);
static member ( = ) : obj * RuntimeTypeHandle -> bool
Public Shared Operator == (left As Object, right As RuntimeTypeHandle) As Boolean

Parameters

left
Object

An object to compare to right.

right
RuntimeTypeHandle

A RuntimeTypeHandle structure to compare to left.

Returns

true if left is a RuntimeTypeHandle structure and is equal to right; otherwise, false.

Remarks

Using this operator to compare two variables of type RuntimeTypeHandle causes an ambiguous overload resolution error when compiled. Use the Equals method instead.

The equivalent method for this operator is RuntimeTypeHandle.Equals(Object).

Applies to

Equality(RuntimeTypeHandle, Object)

Source:
RuntimeHandles.cs
Source:
RuntimeHandles.cs
Source:
RuntimeHandles.cs

Indicates whether a RuntimeTypeHandle structure is equal to an object.

public:
 static bool operator ==(RuntimeTypeHandle left, System::Object ^ right);
public static bool operator == (RuntimeTypeHandle left, object right);
public static bool operator == (RuntimeTypeHandle left, object? right);
static member ( = ) : RuntimeTypeHandle * obj -> bool
Public Shared Operator == (left As RuntimeTypeHandle, right As Object) As Boolean

Parameters

left
RuntimeTypeHandle

A RuntimeTypeHandle structure to compare to right.

right
Object

An object to compare to left.

Returns

true if right is a RuntimeTypeHandle and is equal to left; otherwise, false.

Remarks

Using this operator to compare two variables of type RuntimeTypeHandle causes an ambiguous overload resolution error when compiled. Use the Equals method instead.

The equivalent method for this operator is RuntimeTypeHandle.Equals(Object)>.

Applies to