Version
- Tags:
- analysis
- unneeded code
CA006 - Object test typing not needed
Description
In an object test if the expression conforms to the specified type, that type is redundant.
-
Scope feature Status Enabled Severity Suggestion Applicability All Score 40
Example of violation
Recommendation
Remove the specified type in the object test.
In the example, it can simply be:
Back to Rules
cached: 06/08/2025 9:31:33.000 AM