Use List(T) ForEach method instead of foreach Posted on April 29, 2009 If you have the right .NET version you can use: Help me spread the word:Click to share on Twitter (Opens in new window)Click to share on LinkedIn (Opens in new window)Click to share on Facebook (Opens in new window)Like this:Like Loading...