Immediate Window is fantastically useful tools when probing the current state during debugging process. I learned that by using the question mark, one can do a bit more in there as shown in this post.
However, I still don't know how to execute LINQ queries there (including lambda expressions). I've also failed to execute a foreach statement.
When executing the following statements:
?(things.Select(thing=>thing.Id);)
?(foreach(var thing in things);)
I'm getting these errors:
Expression cannot contain lambda expressions
Invalid expression term 'foreach'
(How) can I execute these in the Immediate Window?
There's also a tool in VS Gallery but it's said that it only works for VS05 and VS08, which most programmers have left behind looong time ago. I'm looking for something applicable to VS13 and/or VS15.