DebuggerDisplayAttribute.Type 属性
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
获取或设置在调试器变量窗口的类型列中显示的字符串。
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# 中的格式说明符。