Click here to Skip to main content
15,886,362 members
Articles / Programming Languages / C#

ForEach elements with a derived type in an IEnumerable collection

Rate me:
Please Sign up or sign in to vote.
4.87/5 (10 votes)
10 May 2012CPOL4 min read 31.6K   437   13  
An extension method for the IEnumerable interface to perform an action on each element which belong to a derived type of T.

Views

Daily Counts

Downloads

Weekly Counts

License

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


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

Comments and Discussions