❔ Comparison in switch statement
I am having trouble understanding this error (12,10): error CS1525: Invalid expression term '=='
Is it not valid to compare equality in switch statement, i am having bad brain fog right now.
6 Replies
There's no
==
in switchesits just case "01":
case "01":
case var x when x == "01":
wow thanks alot, so easy to overlook these things
Was this issue resolved? If so, run
/close
- otherwise I will mark this as stale and this post will be archived until there is new activity.