You can't use switch expressions in Blazor (sometimes) #140
Replies: 1 comment 5 replies
-
|
I'm pretty sure the C# compiler (Roslyn) uses lowering (likely in LocalRewriter_SwitchExpression.cs) to compile switch expressions, not source generators. Razor does not have a problem with switch expressions. It just seems to have a problem with If you put something like |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
You can't use switch expressions in Blazor
Did you ever try to have a switch expression in Blazor? Yes, and did it go well? Probably not. Let's see why!
https://steven-giesel.com/blogPost/b839cab5-55ad-4fd8-90ca-7799cde8ace0
Beta Was this translation helpful? Give feedback.
All reactions