System.Collections.Generic.KeyValuePair<K,V> Structure

public struct KeyValuePair<K,V>

Base Types

Object
  ValueType
    KeyValuePair<K,V>

Assembly

mscorlib

Library

BCL

Summary

Defines a key/value pair that can be set or retrieved.

See Also

System.Collections.Generic Namespace

Members

KeyValuePair<K,V> Constructors

KeyValuePair<K,V> Constructor

KeyValuePair<K,V> Fields

KeyValuePair<K,V>.Key Field
KeyValuePair<K,V>.Value Field


KeyValuePair<K,V> Constructor

public KeyValuePair(K key, V value)

Summary

Initializes a new key/value pair with the specified key and value.

Parameters

key
The key of the key/value pair.
value
The value of the key/value pair.

See Also

System.Collections.Generic.KeyValuePair<K,V> Structure, System.Collections.Generic Namespace

KeyValuePair<K,V>.Key Field

public K Key

Summary

The key in the key/value pair.

See Also

System.Collections.Generic.KeyValuePair<K,V> Structure, System.Collections.Generic Namespace

KeyValuePair<K,V>.Value Field

public V Value

Summary

The value in the key/value pair.

See Also

System.Collections.Generic.KeyValuePair<K,V> Structure, System.Collections.Generic Namespace