Query module UselessNullCoalescingExpression

name
Useless ?? expression
description
The null-coalescing operator is intended to help provide special handling for the case when a variable is null - its two operands should always do different things.
kind
problem
problem.severity
error
precision
medium
id
cs/coalesce-of-identical-expressions
tags
maintainability language-features external/cwe/cwe-561

Imports

StructuralComparison

Provides functionality for performing structural comparison of expressions and statements.

csharp

The default C# QL library.

Classes