using System.Collections.Generic; namespace LLama.Extensions { /// /// Extensions to the KeyValuePair struct /// public static class KeyValuePairExtensions { /// /// 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 KeyValuePair pair, out TKey first, out TValue second) { first = pair.Key; second = pair.Value; } } }