You are previewing Essential LINQ.

Essential LINQ

Cover of Essential LINQ by Charlie Calvert... Published by Addison-Wesley Professional
O'Reilly logo

Chapter 2. Getting Started

Many developers prefer to use a new technology rather than simply read about it. Practical experience provides a foundation on which to construct the theoretical understanding needed when mastering a new skill.

This chapter helps you understand LINQ by showing several simple programs that illustrate

• LINQ to Objects



These examples demonstrate three themes that recur frequently in this book:

• The usefulness of query expressions

• The significance of deferred execution

• The primacy of IEnumerable<T>

The examples shown in this chapter also illustrate how to write query expressions, the key syntactic construct used by LINQ developers to query a data source. When executing even these simple ...

The best content for your career. Discover unlimited learning on demand for around $1/day.