ListT.ForEach or foreach, it doesn't matter...or does it?

added by baldi
6/2/2010 1:09:32 AM

76 Views

When you use a List<T>, it doesn't matter if you use the ForEach method of the generic list or use a normal foreach or does it? Sometimes it makes a difference! If you use primitive data types you should avoid using the ForEach method. Also the ForEarch method shows that not all what you can do, you also should do!


0 comments