public static void DumpDasm(this object value) { // Determine the language (Doesn't work when two copies of LINQPad are open) Language linqPadSelectedLanguage = LinqPadUtil.GetLanguageForQuery(); var linqpadSpyPanel = new LinqPadSpyContainer(new Application(), linqPadSelectedLanguage); PanelManager.DisplayWpfElement(linqpadSpyPanel, "Decompiled"); }
public static object DumpSort <T>(this T obj, int depth) { var metaData = TypeMetadataProviderBase.GetMetadataProvider(obj); var renderer = FragmentBase.GetFragment(metaData); Renderers.Add(() => renderer.Render(depth)); if (webBrowser == null) { webBrowser = new WebBrowser(); PanelManager.DisplayWpfElement(webBrowser, PanelName); PanelManager.GetOutputPanel(PanelName).QueryEnded += OnQueryEnded; } return(obj); }