Gal Ratner
Gal Ratner is a Techie who lives and works in Los Angeles.
Sign in
|
Join
|
Help
Home
Blogs
Media
Forums
Schedule
Consulting Services
Store
All Tags
»
Collections
»
Generic
(RSS)
Browse Blog Posts by Tags
Showing related tags and posts for the
Blogs
application. See
all tags in the site
Sorry, but there are no more tags available to filter with.
foreach vs. List.ForEach vs. an old school for loop
So how fast is List.ForEach and how does it compare to older style looping? I ran a little test: 10 static void Main( string [] args) 11 { 12 List < string > myList = new List < string >(); 13 14 for ( int i = 0;i<9999999;i++) 15 myList.Add(i.ToString()); 16 17 Console .WriteLine( "Press...
Posted to
.NET Development
by
Gal Ratner
on 13 May 2009
Filed under:
Filed under:
Generic
,
Collections
Page 1 of 1 (1 items)