Table of Contents

 

Copyright

Brief Table of Contents

Table of Contents

Foreword

Preface

Acknowledgments

About This Book

1. Getting started

Chapter 1. Introducing LINQ

1.1. What is LINQ?

1.1.1. Overview

1.1.2. LINQ as a toolset

1.1.3. LINQ as language extensions

1.2. Why do we need LINQ?

1.2.1. Common problems

1.2.2. Addressing a paradigm mismatch

1.2.3. LINQ to the rescue

1.3. Design goals and origins of LINQ

1.3.1. The goals of the LINQ project

1.3.2. A bit of history

1.4. First steps with LINQ to Objects: Querying collections in memory

1.4.1. What you need to get started

1.4.2. Hello LINQ to Objects

1.5. First steps with LINQ to XML: Querying XML documents

1.5.1. Why we need LINQ to XML

1.5.2. Hello LINQ to XML

1.6. First steps with LINQ to SQL: Querying relational databases

1.6.1. Overview of LINQ to SQL���s features

1.6.2. Hello LINQ to SQL

1.6.3. A closer look at LINQ to SQL

1.7. Summary

Chapter 2. C# and VB.NET language enhancements

2.1. Discovering the new language enhancements

2.1.1. Generating a list of running processes

2.1.2. Grouping results into a class

2.2. Implicitly typed local variables

2.2.1. Syntax

2.2.2. Improving our example using implicitly typed local variables

2.3. Object and collection initializers

2.3.1. The need for object initializers

2.3.2. Collection initializers

2.3.3. Improving our example using an object initializer

2.4. Lambda expressions

2.4.1. A refresher on delegates

2.4.2. Anonymous methods

2.4.3. Introducing lambda expressions