Difference Between For And Foreach Loop

Posted by Asim Sajjad on Stack Overflow See other posts from Stack Overflow or by Asim Sajjad
Published on 2010-04-02T03:57:55Z Indexed on 2010/04/02 4:03 UTC
Read the original article Hit count: 294

Filed under:
|

Is it better to use the for loop for foreach which is used for collection? As I have heard that for loop is better then foreach as Index based search is better.

© Stack Overflow or respective owner

Related posts about c#

Related posts about best-practices