System::Collections::Generic::KeyValuePair class
Contents
[
Hide
]KeyValuePair class
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.
template<typename TKey,typename TValue>class KeyValuePair
Methods
Method | Description |
---|---|
get_Key() const | Gets key. |
get_Value() const | Gets value. |
GetHashCode() const | Calculates key-value pair hash by xoring key’s and value’s hashes. |
IsNull() const | Always returns false. |
KeyValuePair() | Null key-value pair initializer. |
KeyValuePair(const TKey&, const TValue&) | Constructor. |
KeyValuePair(const std::pair<OtherK, OtherV>&) | Type conversion constructor. |
operator<(const KeyValuePair&) const | Patch for classes inherited from IComparer<KeyValuePair<TKey, TValue», doesn’t compare anything. |
ToString() const | Converts key-value pair to string. |
See Also
- Namespace System::Collections::Generic
- Library Aspose.PUB for C++