Equality Operator (Object, RuntimeTypeHandle)
Collapse the table of content
Expand the table of content

RuntimeTypeHandle.Equality Operator (Object, RuntimeTypeHandle)

 
equivalentCodeEntityM:System.RuntimeTypeHandle.Equals(System.Object,System.RuntimeTypeHandle)

Indicates whether an object and a RuntimeTypeHandle structure are equal.

Namespace:   System
Assembly:  mscorlib (in mscorlib.dll)

public static bool operator ==(
	object left,
	RuntimeTypeHandle right
)

Parameters

left
Type: System.Object

An object to compare to right.

right
Type: System.RuntimeTypeHandle

A RuntimeTypeHandle structure to compare to left.

Return Value

Type: System.Boolean

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

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

Universal Windows Platform
Available since 8
.NET Framework
Available since 2.0
Portable Class Library
Supported in: portable .NET platforms
Windows Phone Silverlight
Available since 8.0
Windows Phone
Available since 8.1
Return to top
Show:
© 2016 Microsoft