This rule looks for complex cast operations (e.g. a as
with a null check) that can be simplified using the is operator
(C# syntax). Note: in some case a compiler, like [g]mcs, can optimize the code and
generate IL identical to a is operator. In this case the rule will not report
an error even if you could see one while looking the at source code.
See Also:
UseIsOperatorRule Members
Syntax
Remarks
Example
Example
Requirements
Namespace: Gendarme.Rules.Performance
Assembly: Gendarme.Rules.Performance (in Gendarme.Rules.Performance.dll)
Assembly Versions: 2.8.0.0