コード例 #1
0
 public static IEnumerable <T> Each <T>(this IEnumerable <T> collection,
                                        int start,
                                        Action <ElementDetail <T>, T> each)
 {
     return(LoopExtensionMethods
            .Each <T>(collection, start, collection.Count(), each));
 }
コード例 #2
0
        public static IEnumerable <T> Each <T>(this IEnumerable <T> collection,
                                               int start,
                                               int end,
                                               Action <ElementDetail <T> > each)
        {
            Action <ElementDetail <T>, T> handle = (detail, item) => { each(detail); };

            return(LoopExtensionMethods
                   .Each <T>(collection, start, end, handle));
        }