🔧 C#: Fix a Switch Expression Silently Taking the Wrong Branch Because Two Overlapping Patterns Are Tried in Source Order and the First Match Wins A switch expression evaluates its arms strictly in the order they’re written and commits to the very first pattern that matches, with no attempt to find the most specific one […]