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

StackOverflow https://stackoverflow.com/questions/4409072

Question

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?

Was it helpful?

Solution

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

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