Hi all!While debugging, I noticed I left off the final command (.ToList() ) on a Linq query (QueryA). QueryA is then queried br another Linq query (QueryB). Without having that command, the debugger has QueryA listed as a "query" with a different icon instead of an object. Even so, QueryB worked fine. I'm guessing QueryA isn't executed until QueryB calls on it.My question is: When doing Linq to objects, is it better to leave off that final command, does it improve efficiency since no object is created? (at least an object that's taking up more memory)
View Complete Post