示例#1
0
 public static void Add <T>(this IGrouping <T> grouping, IEnumerable <T> members) where T : IGroupable <T>
 {
     foreach (var member in members)
     {
         grouping.Add(member);
     }
 }
示例#2
0
        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]);
            }
        }