Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

ConsoleKeyInfo::Inequality Operator (ConsoleKeyInfo, ConsoleKeyInfo)

 

Indicates whether the specified ConsoleKeyInfo objects are not equal.

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

public:
static bool operator !=(
	ConsoleKeyInfo a,
	ConsoleKeyInfo b
)

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:
© 2017 Microsoft