We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
This:
var nullLiteral = returnElse.Expression as LiteralExpressionSyntax;
Becomes:
var nullLiteral = (LiteralExpressionSyntax)returnElse.Expression;
Or the opposite, turn a direct cast into an expression with the as operator.
as
Severity is Hidden. Diagnostic id is CC0028. Category: Refactoring
Hidden
CC0028
Refactoring