Query module UselessIsBeforeAs

name
Useless ‘is’ before ‘as’
description
The C# ‘as’ operator performs a type test - there is no need to precede it with an ‘is’.
kind
problem
problem.severity
recommendation
precision
medium
id
cs/useless-is-before-as
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