KeyValuePair()

KeyValuePair::KeyValuePair() constructor

Null key-value pair initializer.

System::Collections::Generic::KeyValuePair<TKey, TValue>::KeyValuePair()

KeyValuePair::KeyValuePair(const TKey&, const TValue&) constructor

Constructor.

System::Collections::Generic::KeyValuePair<TKey, TValue>::KeyValuePair(const TKey &key, const TValue &value)

Arguments

ParameterTypeDescription
keyconst TKey&Key.
valueconst TValue&Value.

KeyValuePair::KeyValuePair(const std::pair<OtherK, OtherV>&) constructor

Type conversion constructor.

template<typename OtherK,typename OtherV> System::Collections::Generic::KeyValuePair<TKey, TValue>::KeyValuePair(const std::pair<OtherK, OtherV> &pair)

Template parameters

ParameterDescription
OtherKOther key type.
OtherVOther value type.

Arguments

ParameterTypeDescription
pairconst std::pair<OtherK, OtherV>&Pair value.

See Also