Pair of key and value. This type should be allocated on stack and passed to functions by value or by reference. Never use System::SmartPtr class to manage objects of this type.
More...
|
| KeyValuePair () |
| Null key-value pair initializer.
|
|
| KeyValuePair (const TKey &key, const TValue &value) |
| Constructor.
|
|
template<typename OtherK , typename OtherV > |
| KeyValuePair (const std::pair< OtherK, OtherV > &pair) |
| Type conversion constructor.
|
|
const TKey & | get_Key () const |
| Gets key.
|
|
const TValue & | get_Value () const |
| Gets value.
|
|
bool | IsNull () const |
| Always returns false.
|
|
bool | operator< (const KeyValuePair &kvp) const |
| Patch for classes inherited from IComparer<KeyValuePair<TKey, TValue>>, doesn't compare anything.
|
|
String | ToString () const |
| Converts key-value pair to string.
|
|
int | GetHashCode () const |
| Calculates key-value pair hash by xoring key's and value's hashes.
|
|
template<typename TKey, typename TValue>
class System::Collections::Generic::KeyValuePair< TKey, TValue >
Pair of key and value. This type should be allocated on stack and passed to functions by value or by reference. Never use System::SmartPtr class to manage objects of this type.
- Parameters
-
TKey | Key type. |
TValue | Value type. |