Creates a Dictionary{TKey,TValue} from an IEnumerable{T} according to a specified key selector function.