Share via


DebuggerDisplayAttribute Constructor

Creates and initializes a new instance of the DebuggerDisplayAttribute class.

Namespace: System.Diagnostics
Assembly: mscorlib (in mscorlib.dll)

Syntax

public DebuggerDisplayAttribute (
         stringvalue
)

Parameters

  • value
    A string that appears in the value column for instances of the display type.

Remarks

The string in the value parameter can include text enclosed in curly braces ({}). This text can be the name of a field, a property, or a method. Note that you can also include in this string a general expression that has implicit access only to the this pointer for the current instance of the target type. This general expression is limited, however; there is no access to aliases, locals, or pointers. In addition, attributes on properties referenced in the expression are not processed.

Version Information

Available in the .NET Micro Framework versions 2.0, 2.5, 3.0, 4.0, and 4.1.

See Also

Reference

DebuggerDisplayAttribute Class
DebuggerDisplayAttribute Members
System.Diagnostics Namespace