Description
When switching over a sealed type hierarchy (abstract class or interface with all implementations in the same assembly), the switch should cover all derived types to catch missing cases at compile time.Bad Code
Good Code
Properties
- Category: Design
- Severity: Warning
- Enabled by default: True
- Code fix available: True
