ExhaustiveMatching.Analyzer 0.2.1

ExhaustiveMatching.Analyzer adds exhaustive matching to C# switch statements.

Get compiler errors when you leave out a case in a switch statement. Mark which switch statements should have exhaustive matching by throwing an exception in the default case. Exhaustive matching 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.

There is a newer version of this package available.
See the version list below for details.
Install-Package ExhaustiveMatching.Analyzer -Version 0.2.1
dotnet add package ExhaustiveMatching.Analyzer --version 0.2.1
<PackageReference Include="ExhaustiveMatching.Analyzer" Version="0.2.1" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add ExhaustiveMatching.Analyzer --version 0.2.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

Dependencies

This package has no dependencies.

This package is not used by any popular GitHub repositories.

Version History

Version Downloads Last updated
0.3.1 37 9/30/2019
0.3.0 42 9/29/2019
0.2.2 43 9/18/2019
0.2.1 42 9/17/2019
0.2.0 45 9/15/2019
0.1.2 44 9/15/2019
0.1.1 43 9/15/2019
0.1.0 47 9/15/2019