如何使Resharper转换回foreach循环 [英] How to get Resharper to convert back to a foreach loop

查看:91
本文介绍了如何使Resharper转换回foreach循环的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Resharper 5可以将我的foreach循环转换为Linq查询.我喜欢但是linq比foreach循环更难以调试.

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

当我将我的foreach语句转换为linq查询时,我看不到有任何选择可以反过来.

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?

推荐答案

我们正在研究ReSharper vNext的LINQ2Foreach(及其他一些)功能

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

这篇关于如何使Resharper转换回foreach循环的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆