System::Collections::Generic::operator== メソッド

System::Collections::Generic::operator== method

‘’equals’’ セマンティクスを使用して 2 つのキーと値のペアを比較します。キーと値の両方に対して operator == または EqualsTo メソッドを使用し、定義されている方を使用します。

template<typename TKey,typename TValue> bool System::Collections::Generic::operator==(const KeyValuePair<TKey, TValue> &left, const KeyValuePair<TKey, TValue> &right)
パラメーター説明
TKeyキーの種類です。
TValue値型です。
パラメーター説明
const KeyValuePair<TKey, TValue>&左辺オペランドです。
const KeyValuePair<TKey, TValue>&右辺オペランド。

ReturnValue

キーと値の両方が一致すれば true、そうでなければ false です。

参照