Welcome to MSDN Blogs Sign in | Join | Help

April 2004 - Posts

To foreach or not to foreach that is the question.

Recently email was forwarded to me with a link to a page with some performance tips for developers. The second performance tip on the page was: foreach foreach through an array is incredibly slow compared to for (int i = 0; i < array.Length; i) This
 
Page view tracker