public struct KeyValuePair<K,V>
Object
ValueType
KeyValuePair<K,V>
mscorlib
BCL
Defines a key/value pair that can be set or retrieved.
System.Collections.Generic Namespace
KeyValuePair<K,V> Constructors
KeyValuePair<K,V> Fields
public KeyValuePair(K key, V value)
Initializes a new key/value pair with the specified key and value.
- key
- The key of the key/value pair.
- value
- The value of the key/value pair.
System.Collections.Generic.KeyValuePair<K,V> Structure, System.Collections.Generic Namespace
public K Key
The key in the key/value pair.
System.Collections.Generic.KeyValuePair<K,V> Structure, System.Collections.Generic Namespace
public V Value
The value in the key/value pair.
System.Collections.Generic.KeyValuePair<K,V> Structure, System.Collections.Generic Namespace