Fixed bugs
This commit is contained in:
13
UserService.Infrastructure/KeyValueExtensions.cs
Normal file
13
UserService.Infrastructure/KeyValueExtensions.cs
Normal file
@ -0,0 +1,13 @@
|
||||
// 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;
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user