ConsoleKeyInfo.Equality(ConsoleKeyInfo, ConsoleKeyInfo) Operador

Definición

Indica si los objetos ConsoleKeyInfo especificados son iguales.Indicates whether the specified ConsoleKeyInfo objects are equal.

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

Parámetros

a
ConsoleKeyInfo

Primer objeto que se va a comparar.The first object to compare.

b
ConsoleKeyInfo

Segundo objeto que se va a comparar.The second object to compare.

Devoluciones

true si a es igual a b; en caso contrario, false.true if a is equal to b; otherwise, false.

Comentarios

Dos ConsoleKeyInfo objetos son iguales si sus propiedades KeyChar, Keyy Modifiers correspondientes son iguales.Two ConsoleKeyInfo objects are equal if their corresponding KeyChar, Key, and Modifiers properties are equal.

El método equivalente para este operador es ConsoleKeyInfo.Equals(ConsoleKeyInfo).The equivalent method for this operator is ConsoleKeyInfo.Equals(ConsoleKeyInfo).

Se aplica a