Make Dump() extension method available in Visual Studio
Dump() extension method is #1 reason I love and use LinqPad.
It would be great if I could add LinqPad.exe as reference to my Visual Studio project and call Dump() extension method on any of my objects.
As Visual Studio does not have any window to display HTML we could have two variants to Dump() extension method
DumpHTML() which return output as HTMLtext and
DumpText() which returns the output as space formatted text in a ASCII Table
User may choose to print the output to the Console, Output Window or write to the disk.
I you think generating ASCII table is lot of work, I'm fine with HTML output as well.
Please please I need this feature added right now...
![](https://secure.gravatar.com/avatar/55dba99d761d64f976fb1d80db20f616?size=40&default=https%3A%2F%2Fassets.uvcdn.com%2Fpkg%2Fadmin%2Ficons%2Fuser_70-6bcf9e08938533adb9bac95c3e487cb2a6d4a32f890ca6fdc82e3072e0ea0368.png)
-
anunay commented
This works if your project is simple library or a console app. In my case the VS project I'm working on is huge with over 15+ references.The variables I want to dump exist in deep nested classes which can only be instantiated after multiple UI interaction setps. I just can't call my project from Linqpad without making some serious changes to it.
-
Martin Kirk commented
how about creating public variables in your class in VS
then run that program from LinqPad ??
i know it all depends on the project type... but most programs could be called from LinqPad i think...