Enumerable.ToDictionary Method (System.Linq)

Creates a Dictionary<TKey,TValue> from an IEnumerable<T>.