operator!=()

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

Compares two key-value pairs using inverse ’equals’ semantics.

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 don’t match, false otherwise.

See Also