ConsoleKeyInfo.Equality(ConsoleKeyInfo, ConsoleKeyInfo) 演算子

定義

指定した 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 番目のオブジェクト。

戻り値

Boolean

truea に等しい場合は b。それ以外の場合は false

注釈

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

この演算子の同等のメソッドは次のようになります ConsoleKeyInfo.Equals(ConsoleKeyInfo)

適用対象