DebuggerDisplayAttribute.Type 属性

定义

获取或设置在调试器变量窗口的类型列中显示的字符串。

public:
 property System::String ^ Type { System::String ^ get(); void set(System::String ^ value); };
public string Type { get; set; }
public string? Type { get; set; }
member this.Type : string with get, set
Public Property Type As String

属性值

要显示在调试器变量窗口的类型列中的字符串。

注解

该值可以包含大括号 ({ 和 })。 将一对大括号中的文本计算为字段、属性或方法的名称。 还可以使用大括号中的格式说明符来控制值显示方式。 有关调试器格式说明符的信息,请参阅 C# 中的格式说明符

适用于