That Shouldn't Happen - UnreachableException in .NET 7

Errors are bad, k? We don’t want errors. More importantly, we don’t want weird errors. One of the best ways to avoid weird errors is to check preconditions early and throw useful exceptions. The new UnreachableException in .NET 7 is designed for exactly that!
October 26, 2022
418
350