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

Definicja

Tworzy nowe wystąpienie pary klucz/wartość przy użyciu podanych wartości.

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)

Parametry typu

TKey

Typ klucza.

TValue

Typ wartości.

Parametry

key
TKey

Klucz nowego KeyValuePair<TKey,TValue> do utworzenia.

value
TValue

Wartość nowego KeyValuePair<TKey,TValue> do utworzenia.

Zwraca

Para klucz/wartość zawierająca podane argumenty jako wartości.

Dotyczy