DebuggerTypeProxyAttribute

The DebuggerTypeProxyAttribute type assigns a display proxy for another type. The type proxy is displayed instead of the actual type in debug windows. The DebuggerTypeProxyAttribute is an attribute that is valid for assembly, class, and struct constructs. When used at the assembly level, the target name property identifies the target type.

The proxy type must have a one-argument constructor that accepts an instance of the underlying type. For this reason, it is recommended that the proxy type be nested within the target type. This provides the proxy type constructor easy access to the instance of the surrounding object. Only public members of the proxy are visible in the debug window.

The DebuggerTypeProxyAttribute type ...

Get Programming Microsoft® Visual C#® 2008: The Language now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.