Language-Integrated Query (LINQ)
The expressiveness and flexibility of language-integrated query (LINQ), first introduced with .NET 3.5, brought radical change to the way developers program in C# and Visual Basic (VB) .NET. That’s a bold statement, but don’t misinterpret it to mean that LINQ is always the answer. There are many implementations of LINQ, and we will soon be examining many factors that you need to consider before determining which ones are the right (or wrong) choices for your application. But all LINQ implementations ultimately rest on top of LINQ to Objects, and LINQ to Objects is always the right choice when working with objects. This means that—at the very least—you should be using LINQ instead of writing loops wherever possible ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access