Abstract
In this chapter, you were introduced to the world of LINQ and saw some demonstrations of using LINQ to Objects. LINQ can take a little while to get used to, but the flexibility and elegance that it can bring to a program is worth the investment in time. One of the best features of LINQ is consistency. As you will see the chapters that follow, everything that you have learned about to LINQ to Objects can be applied to LINQ to XML, LINQ to Entities, and so on. There are differences, but they are not as great as you might expect.
I have lost count of the number of times that I have been able to perform complex data transformations using LINQ to reduce complex legacy programs to a handful of simple queries. I encourage you to dig further into the details of LINQ and take the time to master of the best features available in C#.
This is a preview of subscription content, log in via an institution.
Buying options
Tax calculation will be finalised at checkout
Purchases are for personal use only
Learn about institutional subscriptionsPreview
Unable to display preview. Download preview PDF.
Rights and permissions
Copyright information
© 2010 Adam Freeman
About this chapter
Cite this chapter
Freeman, A. (2010). LINQ to Objects. In: Introducing Visual C# 2010. Apress, Berkeley, CA. https://doi.org/10.1007/978-1-4302-3172-1_27
Download citation
DOI: https://doi.org/10.1007/978-1-4302-3172-1_27
Publisher Name: Apress, Berkeley, CA
Print ISBN: 978-1-4302-3171-4
Online ISBN: 978-1-4302-3172-1
eBook Packages: Professional and Applied ComputingApress Access BooksProfessional and Applied Computing (R0)