public static void Add <T>(this IGrouping <T> grouping, IEnumerable <T> members) where T : IGroupable <T> { foreach (var member in members) { grouping.Add(member); } }
public static void Add <T>(this IGrouping <T> grouping, params T[] members) where T : IGroupable <T> { var count = members.Length; for (int i = 0; i < count; i++) { grouping.Add(members[i]); } }