for vs. foreach vs. LINQ
        Posted  
        
            by 
                beccoblu
            
        on Programmers
        
        See other posts from Programmers
        
            or by beccoblu
        
        
        
        Published on 2012-12-04T09:09:46Z
        Indexed on 
            2012/12/04
            17:20 UTC
        
        
        Read the original article
        Hit count: 207
        
When I write code in Visual Studio, ReSharper (God bless it!) often suggests me to change my old-school for loop in the more compact foreach form.
And often, when I accept this change, ReSharper goes a step forward, and suggests me to change it again, in a shiny LINQ form.
So, I wonder: are there some real advantages, in these improvements? In pretty simple code execution, I cannot see any speed boost (obviously), but I can see the code becoming less and less readable... So I wonder: is it worth it?
© Programmers or respective owner