I created form with grid to visualize any collection (ICollection
, ICollection<T>
) object.
After that I created debugger visualizer class (inherits from Microsoft.VisualStudio.DebuggerVisualizers.DialogDebuggerVisualizer
).
The visualizer is installed propertly (I tried it on System.Collections.ArrayList
class).
But I have problem with generalize the visualizer to any ICollection
/ICollection<T>
type.
I specified attribute:
[assembly: DebuggerVisualizer( typeof( DebugerSide ), typeof( VisualizerObjectSource ), Target = typeof( System.Collections.Generic.ICollection<> ), Description = "Collection visualizer" )]
[assembly: DebuggerVisualizer( typeof( DebugerSide ), typeof( VisualizerObjectSource ), Target = typeof( System.Collections.ICollection ), Description = "Collection visualizer" )]
but the visualizer is not offered by VS in debug.
If I specify exactl class name, the visualizer is available in VS. Is there way, how to perform my intention or there is no way, how to achieve it?
Thanks!