O'Reilly logo

Essential LINQ by Dinesh Kulkarni, Charlie Calvert

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 4. C# 3.0 Technical Overview

LINQ is built on a set of language features included in C# 3.0 and C# 2.0. Each feature was carefully crafted to fulfill a vision. The purpose of this chapter is to describe all these key features and to show exactly how they align to make LINQ possible.

LINQ to Objects can be used to query the collections found in the System.Collections.Generic namespace. These include List<T>, Stack<T>, LinkedList<T>, Queue<T>, HashSet<T>, and Dictionary<TKey, Value>. One particular C# type, IEnumerable<T>, is implemented by all these classes and plays an especially important role in LINQ to Objects. One of the purposes of this chapter is to explain how IEnumerable<T> and iterators contribute to the LINQ architecture. ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required