Create custom views of .NET objects - Visual Studio (Windows) (original) (raw)

You can customize the way Visual Studio displays data types in debugger variable windows.

Attributes

In C#, Visual Basic, F#, and C++ (C++/CLI code only), you can add expansions for custom data using DebuggerDisplayAttribute, DebuggerTypeProxyAttribute, and DebuggerBrowsableAttribute.

In .NET Framework 2.0 code, Visual Basic doesn't support the DebuggerBrowsable attribute. This limitation is removed in more recent versions of .NET.

Visualizers

There are two options to create a visualizer for a .NET type: