mirror of
https://github.com/nsnail/spectre.console.git
synced 2025-05-02 15:52:49 +08:00
14 lines
312 B
C#
14 lines
312 B
C#
using System.Collections.Generic;
|
|
|
|
namespace Spectre.Console
|
|
{
|
|
internal static class DictionaryExtensions
|
|
{
|
|
public static void Deconstruct<T1, T2>(this KeyValuePair<T1, T2> tuple, out T1 key, out T2 value)
|
|
{
|
|
key = tuple.Key;
|
|
value = tuple.Value;
|
|
}
|
|
}
|
|
}
|