Click here to Skip to main content
15,892,005 members
Articles / Programming Languages / C#

ForEach extension on IList

Rate me:
Please Sign up or sign in to vote.
5.00/5 (2 votes)
2 Oct 2011CPOL 24.3K   1  
The List class already has a method doing the same job as:public static void ForEach(this IList list, Action function)More about the ForEach method is available here. Here is the reflected ForEach method:public void ForEach(Action action){ if (action == null) { ...

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
Software Developer
Australia Australia

Comments and Discussions