Open XDracam opened 5 years ago
We want an extension methods for all enumerables of tuples, which builds a dictionary. The implementation is straight forward:
public static Dictionary<TKey, TValue> ToDictionary<TKey, TValue>(this IEnumerable<(TKey, TValue)> src) => src.ToDictionary(v => v.Item1, v => v.Item2);
We want an extension methods for all enumerables of tuples, which builds a dictionary. The implementation is straight forward: