开发者

Any way I can run custom LINQ during debug / breakpoint in VS2010 or otherwise?

开发者 https://www.devze.com 2023-04-05 11:49 出处:网络
I often need to get some numbers from collections开发者_StackOverflow社区 while I am debugging. What I currently have to do is to write \'test\' lines of code just to check an idea and once i get the

I often need to get some numbers from collections开发者_StackOverflow社区 while I am debugging.

What I currently have to do is to write 'test' lines of code just to check an idea and once i get the answer i need to write anoter test code check another idea which derived from the answer. it seems real stupid to me.

I was wondering if there exists a magic tool which enables using collection on breakpoint so I can write LINQ extensions on it immediately?


Check out this extension to let you use LINQ in the immediate window. I've never used it, so not sure how well it works.

And like I said in the comment, check out LinqPad.

0

精彩评论

暂无评论...
验证码 换一张
取 消