System::Collections::Generic::operator== Methode

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

Vergleicht zwei Schlüssel-Wert-Paare mit ’equals’-Semantik. Verwendet den Operator == oder die EqualsTo-Methode für sowohl Schlüssel als auch Werte, je nachdem, was definiert ist.

template<typename TKey,typename TValue> bool System::Collections::Generic::operator==(const KeyValuePair<TKey, TValue> &left, const KeyValuePair<TKey, TValue> &right)
ParameterBeschreibung
TKeySchlüsseltyp.
TValueWerttyp.
ParameterTypBeschreibung
linksconst KeyValuePair<TKey, TValue>&LHS-Operand.
rechtsconst KeyValuePair<TKey, TValue>&RHS-Operand.

ReturnValue

Wahr, wenn sowohl Schlüssel als auch Werte übereinstimmen, sonst falsch.

Siehe auch