You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
C# -> VB: Switch Expression in Return Statement Converts to an Empty String #983
Just a word of caution to anyone trying to implement this: the given example is a special case in two ways:
It's within a method
The containing statement (return) can simply be repeated within each case label
I expect this is quite a common case so may be worth focusing on that first and just throwing for other cases, which might need extra variables/functions pulling out.
Activity
GrahamTheCoder commentedon Feb 5, 2023
Just a word of caution to anyone trying to implement this: the given example is a special case in two ways:
I expect this is quite a common case so may be worth focusing on that first and just throwing for other cases, which might need extra variables/functions pulling out.