DebuggerDisplay attribute

The DebuggerDisplayAttribute is a powerful way to customize the way values are displayed at debug time.

[DebuggerDisplay("Student: {FirstName} {LastName}")]
public sealed class Student {
    public string FirstName { get; set; }
    public string LastName { get; set; }
}
DebuggerDisplay attribute DebuggerDisplay attribute Reviewed by Bhaumik Patel on 10:51 PM Rating: 5