C# Compiler Warning – CS8846 the switch expression does not handle al
In this blog post, you’ll learn more about the C# Compiler Warning – CS8846 and the related message description
C# Compiler Warning Code
CS8846
C# Compiler Description for the Code :CS8846
The switch expression does not handle all possible values of its input type (it is not exhaustive). For example, the pattern ‘{0}’ is not covered. However, a pattern with a ‘when’ clause might successfully match this value.
Leave Your Comment