LLamaSharp/docs/xmldocs/llama.extensions.keyvaluepa...

855 B

KeyValuePairExtensions

Namespace: LLama.Extensions

Extensions to the KeyValuePair struct

public static class KeyValuePairExtensions

Inheritance ObjectKeyValuePairExtensions

Methods

Deconstruct<TKey, TValue>(KeyValuePair<TKey, TValue>, TKey&, TValue&)

Deconstruct a KeyValuePair into it's constituent parts.

public static void Deconstruct<TKey, TValue>(KeyValuePair<TKey, TValue> pair, TKey& first, TValue& second)

Type Parameters

TKey
Type of the Key

TValue
Type of the Value

Parameters

pair KeyValuePair<TKey, TValue>
The KeyValuePair to deconstruct

first TKey&
First element, the Key

second TValue&
Second element, the Value