Skip to content

Latest commit

 

History

History
17 lines (14 loc) · 338 Bytes

MA0151.md

File metadata and controls

17 lines (14 loc) · 338 Bytes

MA0151 - DebuggerDisplay must contain valid members

Validate the content

[DebuggerDisplay("{Display}")] // compliant
public class Dummy1
{
    public string Display { get; }
}

[DebuggerDisplay("{InvalidMember}")] // non-compliant as InvalidMember doesn't exist
public class Dummy2
{
    public string Display { get; }
}