Table of Contents

Class DebuggerDisplayAttribute

Namespace
System.Diagnostics
Assembly
mscorlib.dll

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

[AttributeUsage(AttributeTargets.Assembly|AttributeTargets.Class|AttributeTargets.Struct|AttributeTargets.Enum|AttributeTargets.Property|AttributeTargets.Field|AttributeTargets.Delegate, AllowMultiple = true)]
public sealed class DebuggerDisplayAttribute : Attribute
Inheritance
DebuggerDisplayAttribute
Inherited Members
Extension Methods

Constructors

DebuggerDisplayAttribute(string)

Initializes a new instance of the DebuggerDisplayAttribute class.

public DebuggerDisplayAttribute(string value)

Parameters

value string

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.

public string Name { get; set; }

Property Value

string

The name to display in the debugger variable windows.

Target

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

public Type Target { get; set; }

Property Value

Type

The attribute's target type.

Exceptions

ArgumentNullException

value

TargetTypeName

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

public string TargetTypeName { get; set; }

Property Value

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.

public string Type { get; set; }

Property Value

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.

public string Value { get; }

Property Value

string

The string to display in the value column of the debugger variable.