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
(note the square brackets around the list of numbers)
However, Stylecop gives an SA1010 warning (Opening square brackets must not be preceded by a space) on the [ just before the 1.
The warning would be correct for int []
With C#12, you can do this:
(note the square brackets around the list of numbers)
However, Stylecop gives an SA1010 warning (Opening square brackets must not be preceded by a space) on the
[
just before the 1.The warning would be correct for
int []
ref: https://learn.microsoft.com/en-us/dotnet/csharp/whats-new/csharp-12#collection-expressions
The text was updated successfully, but these errors were encountered: