Språk

ConsoleKeyInfo.Inequality(ConsoleKeyInfo, ConsoleKeyInfo) Operator

Definition

Anger om de angivna ConsoleKeyInfo objekten inte är lika med.

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

Parametrar

a
ConsoleKeyInfo

Det första objektet som ska jämföras.

b
ConsoleKeyInfo

Det andra objektet att jämföra.

Returer

true om a inte är lika med b, annars , false.

Kommentarer

Två ConsoleKeyInfo objekt är lika med om deras motsvarande KeyChar, Keyoch Modifiers egenskaper är lika med.

Gäller för