Question

I am using Resharper 6.1 and I am pretty sure there is a way to convert LINQ into the loops. They have listed that functionality as one of their version 6 features here.

http://www.jetbrains.com/resharper/whatsnew/whatsnew_60.html#LINQtoLoops

it also "sometimes" allows me to do it by showing a little pop-up besides my code asking me if I want to convert the LINQ expression into a loop. But I am not sure under which condition does it show that little pop-up.

Any ideas?

Was it helpful?

Solution

Resharper is smart. But not smart enough to understand every linq query.

If it's simple enough to convert then reshaper will understand it's possible and will show you the hint (which you can control under Resharper -> Options -> Inspection Severity).

When the linq expression is not simple enough for resharper to understand it can't know how to convert it..

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top