TYPE
SwitchExpressionException
Exception that can be thrown on modern .NET when a non-exhaustive switch expression has no matching arm.
Formal Syntax & Structure
csharp syntaxcsharp
System.Runtime.CompilerServices.SwitchExpressionExceptionWorking Example
Example Snippetcsharp
// Illustrative construction, not a recommended normal control flow.var error = new System.Runtime.CompilerServices.SwitchExpressionException();