operator==()

System::Collections::Generic::operator==(const KeyValuePair<TKey, TValue>&, const KeyValuePair<TKey, TValue>&) function

Compares two key-value pairs using ’equals’ semantics. Uses operator == or EqualsTo method for both keys and values, whichever is defined.

template<typename TKey,typename TValue> bool System::Collections::Generic::operator==(const KeyValuePair<TKey, TValue> &left, const KeyValuePair<TKey, TValue> &right)

Template parameters

ParameterDescription
TKeyKey type.
TValueValue type.

Arguments

ParameterTypeDescription
leftconst KeyValuePair<TKey, TValue>&LHS operand.
rightconst KeyValuePair<TKey, TValue>&RHS operand.

Return Value

True if both keys and values match, false otherwise.

See Also