# KeyValuePairExtensions Namespace: LLama.Extensions Extensions to the KeyValuePair struct ```csharp public static class KeyValuePairExtensions ``` Inheritance [Object](https://docs.microsoft.com/en-us/dotnet/api/system.object) → [KeyValuePairExtensions](./llama.extensions.keyvaluepairextensions.md) ## Methods ### **Deconstruct<TKey, TValue>(KeyValuePair<TKey, TValue>, TKey&, TValue&)** Deconstruct a KeyValuePair into it's constituent parts. ```csharp public static void Deconstruct(KeyValuePair 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