mscorlib 2.0.0.0 4.0.0.0 System.Attribute System.AttributeUsage(System.AttributeTargets.Assembly | System.AttributeTargets.Class | System.AttributeTargets.Struct | System.AttributeTargets.Enum | System.AttributeTargets.Property | System.AttributeTargets.Field | System.AttributeTargets.Delegate | System.AttributeTargets.All, AllowMultiple=true) System.Runtime.InteropServices.ComVisible(true)

The constructor has a single argument: a string to be displayed in the value column for instances of the type. This string can contain braces ({ and }). The text within a pair of braces is evaluated as the name of a field, property, or method. For example, the following C# code causes "Count = 4" to be displayed when the plus sign (+) is selected to expand the debugger display for an instance of MyHashtable.

`[DebuggerDisplay("Count = {count}")] class MyHashtable { public int count = 4; }`

For information about using this attribute in Visual Studio, see Using DebuggerDisplay Attribute.

Determines how a class or field is displayed in the debugger variable windows.

- Constructor
  2.0.0.0
  4.0.0.0

  The parameter can contain braces ({ and }). The text within a pair of braces is evaluated as the name of a field, property, or method. For example, the following C# code causes "Count = 4" to be displayed when the plus sign (+) is selected to expand the debugger display for an instance of MyTable.

  [DebuggerDisplay("Count = {count}")] class MyTable { public int count = 4; }

  Initializes a new instance of the class.

  The string to be displayed in the value column for instances of the type; an empty string ("") causes the value column to be hidden.
- Property
  2.0.0.0
  4.0.0.0
  System.String To be added.

  The value can contain curly braces ({ and }). Text within a pair of braces is evaluated as the name of a field, property, or method.

  Gets or sets the name to display in the debugger variable windows.

- Property
  2.0.0.0
  4.0.0.0
  System.Type To be added.

  Use this property to specify the target type when the attribute is used at the assembly level.

  Gets or sets the type of the attribute's target.

- Property
  2.0.0.0
  4.0.0.0
  System.String To be added.

  Use this property to specify the name of the target type when the attribute is used at the assembly level.

  Gets or sets the type name of the attribute's target.

- Property
  2.0.0.0
  4.0.0.0
  System.String To be added. To be added.

  Gets or sets the string to display in the type column of the debugger variable windows.

- Property
  2.0.0.0
  4.0.0.0
  System.String To be added.

  This property contains the string passed in by the parameter of the constructor.

  Gets the string to display in the value column of the debugger variable windows.