roslynator
roslynator copied to clipboard
RCS1080 depreciated in .NET 6
Current Linq Any() has been updated to include a check for is ICollection. Therefore Any() is as performant as count != 0 would be.
Using Any() is now preferred because performance is the same or very similar and Any() is more universal.
I don't know if Roslynator can detect the runtime but if so it should not report RCS1080 for .NET 6 (and up)