System.UnitTestHelper.ToDictionaryCanRepeatKey C# (CSharp) Méthode

ToDictionaryCanRepeatKey() public static méthode

public static ToDictionaryCanRepeatKey ( IEnumerable source, System.Func keySelector, System.Func elementSelector ) : TElement>.DictionaryCanRepeatKey
source IEnumerable
keySelector System.Func
elementSelector System.Func
Résultat 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());