แก้ไข

แชร์ผ่าน


KeyValuePair.Create<TKey,TValue>(TKey, TValue) Method

Definition

Creates a new key/value pair instance using provided values.

public:
generic <typename TKey, typename TValue>
 static System::Collections::Generic::KeyValuePair<TKey, TValue> Create(TKey key, TValue value);
public static System.Collections.Generic.KeyValuePair<TKey,TValue> Create<TKey,TValue> (TKey key, TValue value);
static member Create : 'Key * 'Value -> System.Collections.Generic.KeyValuePair<'Key, 'Value>
Public Shared Function Create(Of TKey, TValue) (key As TKey, value As TValue) As KeyValuePair(Of TKey, TValue)

Type Parameters

TKey

The type of the key.

TValue

The type of the value.

Parameters

key
TKey

The key of the new KeyValuePair<TKey,TValue> to be created.

value
TValue

The value of the new KeyValuePair<TKey,TValue> to be created.

Returns

A key/value pair containing the provided arguments as values.

Applies to