Property | Value |
---|---|
Id | RCS1199 |
Category | Redundancy |
Severity | Info |
bool? x = null;
// ...
if (x.HasValue && x.Value) // RCS1199
{
}
if (x == true)
{
}
bool? x = null;
bool y = false;
// ...
if (x != null && x.Value == y) // RCS1199
{
}
if (x == y)
{
}
(Generated with DotMarkdown)