I am trying to figure out how does ANY and ALL work in Linq.
Lets say I have 100k records in a list. Which one should perform faster?
if(recordsList.All(r => r.Deleted)) { }
or
if(!recordsList.Any(r => !r.Deleted)) { }
I would think that ANY should perform faster in case the first record on the list is deleted it should stop and return true, instead of using ALL which will always check whole list... right?