ConsoleKeyInfo.Inequality Operator

Indicates whether the specified ConsoleKeyInfo objects are not equal.

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

static let inline (<>)
        a:ConsoleKeyInfo * 
        b:ConsoleKeyInfo  : bool


Type: System.ConsoleKeyInfo

The first object to compare.

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

Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
© 2015 Microsoft