首页 > 解决方案 > Visualized expression in custom data visualizer

问题描述

When I choose one of the built-in visualizers:

Choosing a visualizer

I can see the original expression being visualized:

Text visualizer, with circled visualized expression

How can I get this information from within my own custom visualizer?

I've looked through the API reference, without finding anything.

(If you haven't found an answer, please upvote the request to support this on Developer Community.)

Update

The linked Developer Community request has been closed for reasons.

标签: c#.netvb.netvisual-studiovisualizer

解决方案


因为您对超链接感兴趣,所以我搜索了我的电子邮件存档,发现了一封 2006 年 2 月 4 日的邮件(嗯,这比“几年前”多一点):

我的问题是:

...我也想知道 VS2005 提供的 Visualizers 如何管理显示表达式(Visualizer 表单中最顶部的文本框)。

答案是:

...字符串可视化器可以显示原始表达式的原因是它们内置在 Visual Studio 中,比我们提供的 Visualizers 界面低。它们是用本机代码编写的,在调试本机代码时工作,而我们提供的可视化器架构仅限于托管代码。

对不起!如果您还有其他问题,请告诉我。

Scott Nonnenberg 项目经理 Visual C# 团队

这是在http://blogs.msdn.com/scottno/default.aspx上,但我认为 Scott 不再是 Microsoft 员工,并且无法在线发布该帖子......


推荐阅读