Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Change from as operator to direct cast or the opposite #65

Copy link
Copy link
@giggio

Description

@giggio
Issue body actions

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

Reactions are currently unavailable

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    Morty Proxy This is a proxified and sanitized view of the page, visit original site.