I thought this should be a common question that already got answered elsewhere, but I couldn't find any resources explaining the time complexity of C# Linq method. Hopefully I'm not posting a duplicated question here.
Recently I noticed some performance issue of my company's product and eventually figured out that the Any() method is taking a long time to process over the time of the software has been running. So I started to look into the time complexity of this method. But I didn't find any document or resource to explain it, or for any other Linq method. But my current suspect is that Any()'s time complexity is O(n). I'm also curious about other Linq methods' time complexity as well.
It will be great if someone familiar with Linq can point me to a resource/document to look at this. Any help will be really appreciated.
Thank you very much.