Summary

In this chapter, I introduced you to the term sequence, and its technical data type, IEnumerable<T>. If you feel uncomfortable with some of this terminology, I am sure that with time, it will become second nature for you. Just think of IEnumerable<T> as a sequence of objects you are going to call methods on to do things with those objects.

However, if there is one thing I want you to take with you from this chapter, it is the importance of deferred query execution. It can work for you, or against you. Understanding it is key, and being conscious of it is important. It is so important that I have divided the Standard Query Operators into separate chapters based upon this characteristic. The deferred operators are covered in Chapter 4 ...

Get Pro LINQ: Language Integrated Query in C# 2008 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.