Class DebuggerDisplayAttribute
Determines how a class or field is displayed in the debugger variable windows.
Inherited Members
Namespace: System.Diagnostics
Assembly: mscorlib.dll
Syntax
[AttributeUsage(AttributeTargets.Assembly|AttributeTargets.Class|AttributeTargets.Struct|AttributeTargets.Enum|AttributeTargets.Property|AttributeTargets.Field|AttributeTargets.Delegate, AllowMultiple = true)]
public sealed class DebuggerDisplayAttribute : Attribute
Constructors
DebuggerDisplayAttribute(string)
Initializes a new instance of the DebuggerDisplayAttribute class.
Declaration
public DebuggerDisplayAttribute(string value)
Parameters
Type | Name | Description |
---|---|---|
string | value | The string to be displayed in the value column for instances of the type; an empty string ("") causes the value column to be hidden. |
Properties
Name
Gets or sets the name to display in the debugger variable windows.
Declaration
public string Name { get; set; }
Property Value
Type | Description |
---|---|
string | The name to display in the debugger variable windows. |
Target
Gets or sets the type of the attribute's target.
Declaration
public Type Target { get; set; }
Property Value
Type | Description |
---|---|
Type | The attribute's target type. |
Exceptions
Type | Condition |
---|---|
ArgumentNullException | value |
TargetTypeName
Gets or sets the type name of the attribute's target.
Declaration
public string TargetTypeName { get; set; }
Property Value
Type | Description |
---|---|
string | The name of the attribute's target type. |
Type
Gets or sets the string to display in the type column of the debugger variable windows.
Declaration
public string Type { get; set; }
Property Value
Type | Description |
---|---|
string | The string to display in the type column of the debugger variable windows. |
Value
Gets the string to display in the value column of the debugger variable windows.
Declaration
public string Value { get; }
Property Value
Type | Description |
---|---|
string | The string to display in the value column of the debugger variable. |