How to generate labels on Switch expressions at C# 8.0, like on switch statement at previous C#
How do I generate labels on switch expressions by ReSharper. I can on switch statement.
I can generate -> switch(type) { ... }
I cannot generate -> type switch { ... }
Please sign in to leave a comment.
Hello,
thank you for contacting us.
You could use the “Add missing arms” quick-fix for it.
For example, in this code block:
put cursor on
switchand press “Alt+Enter”;choose “Add missing arms”;
the result:
Thank you!
I’d lile to know too :)