ConsoleKeyInfo.Inequality(ConsoleKeyInfo, ConsoleKeyInfo) Operator

Definition

Gibt an, ob die angegebenen ConsoleKeyInfo-Objekte ungleich sind.Indicates whether the specified ConsoleKeyInfo objects are not equal.

public:
 static bool operator !=(ConsoleKeyInfo a, ConsoleKeyInfo b);
public static bool operator != (ConsoleKeyInfo a, ConsoleKeyInfo b);
static member op_Inequality : ConsoleKeyInfo * ConsoleKeyInfo -> bool
Public Shared Operator != (a As ConsoleKeyInfo, b As ConsoleKeyInfo) As Boolean

Parameters

a
ConsoleKeyInfo

Das erste der zu vergleichenden Objekte.The first object to compare.

b
ConsoleKeyInfo

Das zweite der zu vergleichenden Objekte.The second object to compare.

Returns

Boolean

true, wenn a und b ungleich sind, andernfalls false.true if a is not equal to b; otherwise, false.

Remarks

Zwei ConsoleKeyInfo Objekte sind gleich, wenn ihre entsprechenden KeyChar-, Key-und Modifiers-Eigenschaften gleich sind.Two ConsoleKeyInfo objects are equal if their corresponding KeyChar, Key, and Modifiers properties are equal.

Applies to