Click here to Skip to main content
15,895,557 members
Articles / Programming Languages / C#

ForEach extension on IList

Rate me:
Please Sign up or sign in to vote.
5.00/5 (1 vote)
5 Oct 2011CPOL 6.4K   1  
Why limit it to IList, instead of IEnumerable?public static class ListExtension{// This is unnecessary as any collection that implement IList will also implement IEnumerable// public static void ForEach(this IList list, Action function)// {// foreach (T...

Views

Daily Counts

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
United States United States
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions