Is caching LINQ to Objects?

advertisements

Does LINQ to Objects queries cache by LINQ provider when it execute for the second time?


There is nothing to cache in LINQ-to-Objects, which simply uses a series of extension method calls to generate a chain (or graph) of iterators. It isn't like LINQ-to-SQL, which has to compile the graph into a SQL statement before executing it.