| PairMakePairTKey, TValue Method |
Creates a pair with the specified key and value.
Namespace:
Ookii.Jumbo.IO
Assembly:
Ookii.Jumbo (in Ookii.Jumbo.dll) Version: 2.0.0
Syntax public static Pair<TKey, TValue> MakePair<TKey, TValue>(
TKey key,
TValue value
)
Public Shared Function MakePair(Of TKey, TValue) (
key As TKey,
value As TValue
) As Pair(Of TKey, TValue)
public:
generic<typename TKey, typename TValue>
static Pair<TKey, TValue>^ MakePair(
TKey key,
TValue value
)
static member MakePair :
key : 'TKey *
value : 'TValue -> Pair<'TKey, 'TValue>
Parameters
- key
- Type: TKey
The key. May be if TKey is a reference type. - value
- Type: TValue
The value. May be if TValue is a reference type.
Type Parameters
- TKey
- The type of the key.
- TValue
- The type of the value.
Return Value
Type:
PairTKey,
TValueAn instance of
PairTKey, TValue.
Remarks
This function can be used to create a pair using type inference for the key and value types so you do not have to explicitly specify them.
See Also