orleans icon indicating copy to clipboard operation
orleans copied to clipboard

Use collection initializers or expressions

Open kzu opened this issue 1 year ago • 1 comments

This is the recommented way and is starting to be applied throughout the dotnet runtime. See https://github.com/dotnet/runtime/pull/105122.

Applied code fixes for:

  • IDE0028: https://learn.microsoft.com/en-us/dotnet/fundamentals/code-analysis/style-rules/ide0028?pivots=dotnet-8-0
  • IDE00300: https://learn.microsoft.com/en-us/dotnet/fundamentals/code-analysis/style-rules/ide0300
Microsoft Reviewers: Open in CodeFlow

kzu avatar Jul 30 '24 14:07 kzu

The second commit catches the cases of new[] { that were not flagged (nor autofixed) by the analyzers.

The ambiguous API call compilation errors are due to not having the .NET 9 compiler smarts :(

kzu avatar Jul 30 '24 14:07 kzu