Clase System::Collections::Generic::KeyValuePair
Contenido
[
Ocultar
]KeyValuePair class
Par de clave y valor. Este tipo debe ser asignado en la pila y pasado a funciones por valor o por referencia. Nunca use la clase System::SmartPtr para gestionar objetos de este tipo.
template<typename TKey,typename TValue>class KeyValuePair
Métodos
| Método | Descripción |
|---|---|
| get_Key() const | Obtiene la clave. |
| get_Value() const | Obtiene el valor. |
| GetHashCode() const | Calcula el hash del par clave-valor mediante XOR de los hashes de la clave y del valor. |
| IsNull() const | Siempre devuelve false. |
| KeyValuePair() | Inicializador nulo de par clave-valor. |
| KeyValuePair(const TKey&, const TValue&) | Constructor. |
| KeyValuePair(const std::pair<OtherK, OtherV>&) | Constructor de conversión de tipo. |
| operator<(const KeyValuePair&) const | Parche para clases heredadas de IComparer<KeyValuePair<TKey, TValue», no compara nada. |
| ToString() const | Convierte el par clave-valor a cadena. |
Ver también
- Namespace System::Collections::Generic
- Library Aspose.Page for C++