Skip to content

Instantly share code, notes, and snippets.

View werwolfby's full-sized avatar

Alexander Puzynia werwolfby

  • EPAM Systems
  • Seattle, USA
View GitHub Profile
@werwolfby
werwolfby / KeyValuePairExtension.cs
Last active December 16, 2017 10:17 — forked from emoacht/KeyValuePairExtension.cs
Deconstruct extension method for KeyValuePair in C# 7
public static class KeyValuePairExtension
{
public static void Deconstruct<TKey, TValue>(this KeyValuePair<TKey, TValue> source, out TKey key, out TValue value)
{
key = source.Key;
value = source.Value;
}
}