Redigeeri

Jagamisviis:


KeyValuePair<TKey,TValue>(TKey, TValue) Constructor

Definition

Initializes a new instance of the KeyValuePair<TKey,TValue> structure with the specified key and value.

public:
 KeyValuePair(TKey key, TValue value);
public KeyValuePair (TKey key, TValue value);
new System.Collections.Generic.KeyValuePair<'Key, 'Value> : 'Key * 'Value -> System.Collections.Generic.KeyValuePair<'Key, 'Value>
Public Sub New (key As TKey, value As TValue)

Parameters

key
TKey

The object defined in each key/value pair.

value
TValue

The definition associated with key.

Applies to