
Using Generics with DebuggerTypeProxy
Support for generics is limited. For C#, DebuggerTypeProxy supports only open types. An open type, also called an unconstructed type, is a generic type that has not been instantiated with arguments for its type parameters. Closed types, also called constructed types, are not supported.
The syntax for an open type looks like this:
Namespace.TypeName<,>
If you use a generic type as a target in DebuggerTypeProxy, you must use this syntax. The DebuggerTypeProxy mechanism infers the type parameters for you.
For more information on open and closed types in C# see the C# Language Specification, section 20.5.2 Open and closed types.
Visual Basic does not have open type syntax, so you cannot do the same thing in Visual Basic. Instead, you must use a string representation of the open type name.
"Namespace.TypeName'2"