Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to get Resharper to convert back to a foreach loop

Resharper 5 can convert my foreachloops to Linq queries. Which I like. But linq is way way way harder to debug than a foreachloop.

When I convert my foreach statement to a linq query, I don't see any option to go back the other way.

Does any one know how to do this? Is it even possible?

like image 207
Vaccano Avatar asked Jul 06 '10 16:07

Vaccano


1 Answers

We are working on LINQ2Foreach (and some other) functionality for ReSharper vNext

like image 52
Ilya Ryzhenkov Avatar answered Sep 28 '22 03:09

Ilya Ryzhenkov