namespace LLama.Extensions; /// /// Extensions to the KeyValuePair struct /// internal static class KeyValuePairExtensions { #if NETSTANDARD2_0 /// /// Deconstruct a KeyValuePair into it's constituent parts. /// /// The KeyValuePair to deconstruct /// First element, the Key /// Second element, the Value /// Type of the Key /// Type of the Value public static void Deconstruct(this System.Collections.Generic.KeyValuePair pair, out TKey first, out TValue second) { first = pair.Key; second = pair.Value; } #endif }