Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.

  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint

Summary

In this chapter, we have seen different query operators supported by LINQ. These operators can be used on the objects whose type implements the IEnumerable<T> interface, or the interface IQueryable<T>. All operators differ from one another with respect to the time of execution. The operators like Average and Sum, which return a single value, will execute immediately, whereas operators like Select, SelectMany, TakeWhile, will defer the query execution and return an enumerable object. We can also replace standard query operators with our own implementation that provides additional required services.


  

You are currently reading a PREVIEW of this book.

                                                                                                                    

Get instant access to over $1 million worth of books and videos.

  

Start a Free Trial


  
  • Safari Books Online
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint