Visual Studio Immediate Window - Lambda Expressions Aren't Allowed - Is there a Work-around or Alternative? [closed]

耗尽温柔 提交于 2019-12-03 04:42:42

问题


I'm debugging some tricky generic List-based code in VS 2010 - lots of hierarchy-processing etc.. Of course lambda expressions and anonymous methods aren't permitted within the immediates window and I can't be doing with stepping thru the code in the usual way as I'm still trying to get my head around the hierarchies ...

Can anyone suggest a workaround or an alternative tool?


回答1:


At times like this I always turn to the most excellent LINQPad.

The front page of the linked site (at time of writing) immediately jumps in with stuff about SQL but don't let that obscure how powerful and flexible this tool really is. I sort of treat it like an Immediate Window on steroids. I find it invaluable for working my way through complex LINQ queries.

If you can live without intellisense it's free (the intellisense version is chargeable).



来源:https://stackoverflow.com/questions/4409072/visual-studio-immediate-window-lambda-expressions-arent-allowed-is-there-a

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!