ConsoleKeyInfo.Inequality Operator (ConsoleKeyInfo, ConsoleKeyInfo)

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Indicates whether the specified ConsoleKeyInfo objects are not equal.

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

Public Shared Operator <> (
	a As ConsoleKeyInfo,
	b As ConsoleKeyInfo
) As Boolean

Parameters

a
Type: System.ConsoleKeyInfo

The first object to compare.

b
Type: System.ConsoleKeyInfo

The second object to compare.

Return Value

Type: System.Boolean

true if a is not equal to b; otherwise, false.

Two ConsoleKeyInfo objects are equal if their corresponding KeyChar, Key, and Modifiers properties are equal.

.NET Framework
Available since 2.0
Return to top
Show: