Property | Value |
---|---|
Id | RR0204 |
Title | Generate property for DebuggerDisplay attribute |
Syntax | DebuggerDisplay attribute |
Enabled by Default | ✓ |
[DebuggerDisplay("A: {A} B: {B}")]
public class Foo
{
public string A { get; }
public string B { get; }
}
DebuggerDisplay("{DebuggerDisplay,nq}")]
public class Foo
{
public string A { get; }
public string B { get; }
[DebuggerBrowsable(DebuggerBrowsableState.Never)]
private string DebuggerDisplay
{
get { return $"A: {A} B: {B}"; }
}
}
- Using Expressions in DebuggerDisplay
- DebuggerDisplay attribute best practices
- Full list of refactorings
(Generated with DotMarkdown)