- Operating system: Windows 11
- Visual Studio version: 17.12.0
- SonarLint plugin version: 8.6.0.10679
- Programming language you’re coding in: C#
- Is connected mode used: No
In .NET 9, new performance enhancements were introduced for the LINQ methods that make them perform better than the collection-specific methods. Running the benchmarks listed in the rule help in .NET 9 shows that this is the case.
The following warnings (and possibly others) should be disabled by default when using .NET 9:
- S6603: The collection-specific “TrueForAll” method should be used instead of the “All” extension
- S6605: Collection-specific “Exists” method should be used instead of the “Any” extension