Navigation: X# Documentation > X# Compiler Errors and Warnings
Error XS8119
The switch expression must be a value; found {0}.