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

C#.NetVisual Studio-2010LambdaImmediate Window

C# Problem Overview


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?

C# Solutions


Solution 1 - C#

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).

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionindraView Question on Stackoverflow
Solution 1 - C#HolfView Answer on Stackoverflow