In the .Any() method here:
https://github.com/dotnet/corefx/blob/e043326e204a9566ee26403b522cf95cda2d54ee/src/System.Linq/src/System/Linq/AnyAll.cs#L18:L21
would it make sense to check for IReadOnlyCollection and call Count in order to avoid the enumerator instantiation?
Oh well, it would appear there is high demand for that. ;) I'll close this one and I promise to properly use the search next time.
Most helpful comment
Oh well, it would appear there is high demand for that. ;) I'll close this one and I promise to properly use the search next time.