Permalink
Fetching contributors…
Cannot retrieve contributors at this time
39 lines (27 sloc) 790 Bytes

RCS1199: Simplify boolean expression

Property Value
Id RCS1199
Category Simplification
Default Severity Info
Enabled by Default
Supports Fade-Out -
Supports Fade-Out Analyzer -

Example

Code with Diagnostic

bool? x = null;

// ...

if (x.HasValue && x.Value) // RCS1199
{
}

Code with Fix

if (x == true)
{
}

See Also

(Generated with DotMarkdown)