Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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?

like image 689
indra Avatar asked Dec 10 '10 13:12

indra


1 Answers

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

like image 153
Holf Avatar answered Oct 20 '22 06:10

Holf