C# DebuggerDisplayAttribute

 

 

[DebuggerDisplay("Student:Id={StuId},Name={StuName}")]
    public class Student
    {
        public int StuId { get; set; }
        public string StuName { get; set; }
    }

Generally speak,if I comment out the DebuggerDisplayAttribute in debug mode,it displays as below.

 

posted @ 2020-08-13 16:35  FredGrit  阅读(194)  评论(0编辑  收藏  举报