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.
Severity is Hidden.
Diagnostic id is CC0028.
Category: Refactoring
This:
Becomes:
Or the opposite, turn a direct cast into an expression with the
asoperator.Severity is
Hidden.Diagnostic id is
CC0028.Category:
Refactoring