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)); }
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)); }