is
expression can be simplified CS-R1094The is
operator allows you to check if a variable belongs to a specific type. The same operator can be chained with not
to check for the inverse. It is therefore recommended that you simplify the is
expression to improve readability.
if (!(foo is Foo))
{
// ...
}
if (foo is not Foo)
{
// ...
}