UserService/UserService.Infrastructure/KeyValueExtensions.cs
2020-09-26 20:49:09 +02:00

13 lines
375 B
C#

// ReSharper disable once CheckNamespace
namespace System.Collections.Generic
{
public static class KeyValueExtensions
{
public static void Deconstruct<TKey, TValue>(this KeyValuePair<TKey, TValue> keyValuePair, out TKey key,
out TValue value)
{
key = keyValuePair.Key;
value = keyValuePair.Value;
}
}
}