Sign in Sign up
nuget

ExhaustiveMatching.Analyzer

ExhaustiveMatching.Analyzer adds exhaustive matching to C# switch statements and expressions. Get compiler errors for missing cases in a switch statement or expression. Mark which switches should have exhaustiveness checking by throwing an exception in the default case. Exhaustiveness checking works not just for enums, but for classes and interfaces. Turn them into discriminated unions (aka sum types) by marking them with the 'Closed' attribute and listing the cases. ExhaustiveMatching.Analyzer goes beyond what other languages support by handling full inheritance hierarchies.

nuget View on Nuget

Activity

Latest release
6y ago
Total releases
11
Cadence
~daily
Last 12 months
0

Details

License
BSD-3-Clause
First release
Sep 15, 2019
Releases
Version Released
0.5.0 minor
0.4.0 minor
0.3.2 patch
0.3.1 patch
0.3.0 minor
0.2.2 patch
0.2.1 patch
0.2.0 minor
0.1.2 patch
0.1.1 patch
0.1.0 initial