ConsoleKeyInfo.Equality(ConsoleKeyInfo, ConsoleKeyInfo) Operator

定義

指定した ConsoleKeyInfo オブジェクトが等しいかどうかを示します。

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

パラメーター

a
ConsoleKeyInfo

比較する最初のオブジェクト。

b
ConsoleKeyInfo

比較する 2 番目のオブジェクト。

返品

true abと等しい場合は ɳ。それ以外の場合はfalse

注釈

対応するKeyCharKey、およびModifiersのプロパティが等しい場合、2 つのConsoleKeyInfo オブジェクトが等しくなります。

この演算子の同等のメソッドは ConsoleKeyInfo.Equals(ConsoleKeyInfo)

適用対象