System.UnitTestHelper.ToDictionaryCanRepeatKey C# (CSharp) Method

ToDictionaryCanRepeatKey() public static method

public static ToDictionaryCanRepeatKey ( IEnumerable source, System.Func keySelector, System.Func elementSelector ) : TElement>.DictionaryCanRepeatKey
source IEnumerable
keySelector System.Func
elementSelector System.Func
return TElement>.DictionaryCanRepeatKey
        public static DictionaryCanRepeatKey<TKey, TElement> ToDictionaryCanRepeatKey<TSource, TKey, TElement>(this IEnumerable<TSource> source, Func<TSource, TKey> keySelector, Func<TSource, TElement> elementSelector) => new DictionaryCanRepeatKey<TKey, TElement>(source.Select(x => (keySelector(x), elementSelector(x))).ToArray());