Click here to Skip to main content
15,889,822 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Need to know which performance will be better between Linq and for loop
Posted
Comments
Maciej Los 28-Aug-15 8:46am    
Can you provide bit more details? Or does this question is general from its nature?
Sanket Saxena 28-Aug-15 9:07am    
Just Google it will provide more option.

Depends on the case. Linq queries are very good at optimizing, but they are essentially for loops themselves
 
Share this answer
 
Google for lots of existing comparisons. The for loop will be quicker, but not significantly.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900