哪个类是用于"文字展示台"? [英] Which class is used for "Text Visualizer"?

查看:138
本文介绍了哪个类是用于"文字展示台"?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我使用 DebuggerVisualizer 属性如下:

C#

[assembly: DebuggerVisualizer(typeof(DataSetVisualizer), typeof(DataSetVisualizerSource), Target = typeof(DataTable), Description = "My DataTable Visualizer")]

vb.net

<Assembly: DebuggerVisualizer(GetType(DataSetVisualizer), GetType(DataSetVisualizerSource), Target := GetType(DataTable), Description := "My DataTable Visualizer")>



我可以在我的visualisers DLL重用数据集Visualiser的。这使得已建成VS可视化作为第一个(默认),即使一个自定义的数据表可视化定义(的如何指定在Visual Studio调试器展示台)的顺序。

I can reuse Dataset Visualiser in my visualisers dll. This allows to have built in VS visualizer as first (default) even when a custom DataTable visualizer is defined(How to specify order of debugger visualizers in Visual Studio).

我想实现相同的行为文本Visualiser的。

推荐答案

不幸的是,我不相信这是对文本展示台托管类,至少相对于所记录VS API使用调试器的可视化工具。如果没有为文本展示台一个特定的类,我无法通过反射涉及到调试托管程序中找到它。

Unfortunately, I do not believe there is a managed class for the Text Visualizer, at least with respect to the documented VS API for using debugger visualizers. If there is a specific class for Text Visualizer, I couldn't find it by reflecting the managed assemblies related to debugging.

创建自定义可视化的文档指出自定义的可视化将从继承DialogDebuggerVisualizer 的。但是,如果你反映Microsoft.VisualStudio.DebuggerVisualizers.dll,你将看到的只有的可视化工具附带VS采用这种工艺实现的是DataSetVisualizer类(我使用VS2012但它们从VS2008的文档表示使用DialogDebuggerVisualizer)相同的处理。因此,不会有可以与DebuggerVisualizerAttribute使用合适的类名。这里是 DotPeek 反射的快照:

The documentation for creating a custom visualizer states that the custom visualizer will inherit from DialogDebuggerVisualizer. But if you reflect the Microsoft.VisualStudio.DebuggerVisualizers.dll, you will see that the only visualizer that ships with VS implemented using this process is the DataSetVisualizer class (I am using VS2012 but their documentation from VS2008 on indicates the same process using DialogDebuggerVisualizer). Hence, there won't be a proper class name you can use with the DebuggerVisualizerAttribute. Here is a snapshot of the reflection with DotPeek:

更可能的,其他的展示台没有托管代码或可能是动态构造,可以在托管和非托管代码,使用(最糟糕的情况下,他们从更早版本的Visual Studio遗留结转)。

More than likely, the other visualizers are not managed code or may be dynamic constructs that can be used across managed and unmanaged code, (worst case they are legacy carry-overs from much earlier versions of Visual Studio).

这篇关于哪个类是用于&QUOT;文字展示台&QUOT;?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆