Codechef4u is a community for computer professionals,by computer professionals,just like you; who loves sharing and helping each others,Join them
Share your post

Answers


No ,LINQ statement is slower than 'foreach' loop , i recommend do not use LINQ  if you are much about performance. Advantage of LINQ is code readability and maintenance. 

For detailed explanation check following Q&A thread,

https://stackoverflow.com/questions/3156059/is-a-linq-statement-faster-than-a-foreach-loop


Share your answer


Share as a guest

Please subscribe me to the CodeChef4U.

By creating your new answer, you agree to the privacy policy and terms of service.