diff --git a/src/Core/src/Extensions/EnumerableExtensions.cs b/src/Core/src/Extensions/EnumerableExtensions.cs index fb1fef33d8c0..e3c1d5773846 100644 --- a/src/Core/src/Extensions/EnumerableExtensions.cs +++ b/src/Core/src/Extensions/EnumerableExtensions.cs @@ -20,29 +20,6 @@ public static void ForEach(this IEnumerable enumeration, Action action) } } - /// - /// - /// - /// - /// - /// - /// - /// - public static IDictionary> GroupToDictionary(this IEnumerable enumeration, Func func) - where TKey : notnull - { - var result = new Dictionary>(); - foreach (TSource item in enumeration) - { - var group = func(item); - if (!result.ContainsKey(group)) - result.Add(group, new List { item }); - else - result[group].Add(item); - } - return result; - } - /// /// Find the index of a specific item within the collection. /// @@ -74,29 +51,6 @@ public static int IndexOf(this IEnumerable enumerable, T item) return -1; } - /// - /// Find the index for the first occurrence of an item within the collection as matched through the specified predicate. - /// - /// The type of object contained in this collection. - /// The collection in which to look for the item. - /// The predicate used to evaluate each item and see if it matches. - /// The item currently evaluated of type is provided as an input parameter. - /// The resulting value should be a which is if this is the item to match, otherwise . - /// The index of the first item to match through in the collection or -1 when no match is not found. - public static int IndexOf(this IEnumerable enumerable, Func predicate) - { - var i = 0; - foreach (T element in enumerable) - { - if (predicate(element)) - return i; - - i++; - } - - return -1; - } - /// /// Retrieves the last item from a instance. ///