Skip to main content

RCS1223: Mark publicly visible type with DebuggerDisplay attribute

Properties

PropertyValue
Default Severitydisabled by default
Minimum language version-

Examples

Example #1

diagnostic.cs
public class Foo
{
}
fix.cs
[DebuggerDisplay("{DebuggerDisplay,nq}")]
public class Foo
{
[DebuggerBrowsable(DebuggerBrowsableState.Never)]
private string DebuggerDisplay
{
get { return ToString(); }
}
}

Applies to