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
Doesn't look nice, and when reading the in the docs about SA1009 it seems there are some exceptions to this rule (cast), so maybe some logic needed here to handle switch expressions.
The text was updated successfully, but these errors were encountered:
Version: 1.2.0-beta.556
.NET version: 8
I'm working with a
switch
expression like below:This gives the SA1009 error.
StyleCop wants me to put it like this:
Doesn't look nice, and when reading the in the docs about SA1009 it seems there are some exceptions to this rule (cast), so maybe some logic needed here to handle switch expressions.
The text was updated successfully, but these errors were encountered: