WalkerCodeRanger
2 packages
Author Trust
Growing65/100
2
Packages
84.8M
Total DLs
Sort:
2 packages
Semver
Jeff Walker, Max Hauser
A semantic version library fully compliant with v2.0.0 of the spec found at http://semver.org.
83.6M24 versionssemver, semantic, version +1
ExhaustiveMatching.Analyzer
Jeff Walker
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.
1.2M11 versionsanalyzers, switch, exhaustive +4