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

RuntimeTypeHandle.Inequality Operator (Object, RuntimeTypeHandle)

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

Indicates whether an object and a RuntimeTypeHandle structure are not equal.

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

public static bool operator !=(
	Object left,
	RuntimeTypeHandle right


Type: System.Object
An object to compare to right.
Type: System.RuntimeTypeHandle
A RuntimeTypeHandle structure to compare to left.

Return Value

Type: System.Boolean
true if left is a RuntimeTypeHandle and is not 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.

Windows Phone OS

Supported in: 8.1, 8.0

© 2017 Microsoft