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.
Install-Package ExhaustiveMatching.Analyzer -Version 0.5.0
dotnet add package ExhaustiveMatching.Analyzer --version 0.5.0
<PackageReference Include="ExhaustiveMatching.Analyzer" Version="0.5.0" />
paket add ExhaustiveMatching.Analyzer --version 0.5.0
This package has no dependencies.
This package is not used by any NuGet packages.
This package is not used by any popular GitHub repositories.