// Copyright (c) Umbraco.
// See LICENSE for more details.
using System.Collections.Generic;
namespace Umbraco.Extensions
{
///
/// Provides extension methods for the struct.
///
public static class KeyValuePairExtensions
{
///
/// Implements key/value pair deconstruction.
///
/// Allows for foreach ((var k, var v) in ...).
public static void Deconstruct(this KeyValuePair kvp, out TKey key, out TValue value)
{
key = kvp.Key;
value = kvp.Value;
}
}
}