| Start |
|---|
| Extension method for IEnumerable
ToList first The enumeration (or query) will be evaluated, copying the results into a new list or calling the database. The method is then called on each item. This method has obvious memory usage overhead, as an intermediate list is created. Extension method Write an extension method: Use: Caution: The Framework's LINQ methods have been designed with the intention of being pure, which means they do not produce side effects. The |
Calling a method on an object in a list RemarksUse it at all? You might argue that the intention of the .NET framework is that queries do not have any side effects and the |
Read Article
https://develop.horje.com/learn/1434/reference