views:

176

answers:

3

When developing a Visual Studio (2005) Debug Visualizer, you have to specify the target type you want to visualize (i.e. a DataSet Visualizer would specify its target at TypeOf(DataSet)). However, what if you want your Visualizer to be able to visualize any object type? Specifying the target to TypeOf(Object) doesn't seem to work.

Edit: this is for purely managed code.

A: 

You can't just visualize every object. There are certain requirements regarding serialization (for example). I never created a complex visualizer myself (just one for a custom mailobject), but that was the premise in all articles went to that direction.

Sascha
A: 

Please see this article, in particular you want AutoExpand rules.

Brian R. Bondy
A: 

You can't, which is a shame. The target type must be typeof(T) for some T other than "object".

Brian