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
I find both of those options pretty unfortunate. In both cases I kinda gloss over the ?. operator, which was so obvious in the other layout. To say nothing of the inconsistency with my group's existing style.
I went to go disable the check, but it seems it would be even more unfortunate to turn off SA1003.
The text was updated successfully, but these errors were encountered:
This is the chained-statement break-style my group's codebase has been following:
Which I find quite readable.
But
Things
is sometimes null. And we're on C# 6 now.So I threw a
?.
in the obvious place:I still find this quite readable (though perhaps a bit weird now that the alignment is off)
But stylecop became quite unhappy with the spacing around
?.
, throwing aSA1003 : CSharp.Spacing : The spacing around the symbol '?.' is invalid.
It does, however, find the following things acceptable:
I find both of those options pretty unfortunate. In both cases I kinda gloss over the
?.
operator, which was so obvious in the other layout. To say nothing of the inconsistency with my group's existing style.I went to go disable the check, but it seems it would be even more unfortunate to turn off
SA1003
.The text was updated successfully, but these errors were encountered: