Chapter 9. LINQ and Lambdas Get Control of your data
It’s a data-driven world...we all need to know how to live in it.
Gone are the days when you could program for days, even weeks, without dealing with loads of data. Today, everything is about data, and that’s where LINQ comes in. LINQ is a feature of C# and .NET that not only lets you query data in your .NET collections in an intuitive way, but lets you group data and merge data from different data sources. You’ll use anonymous objects to manage your data in new and interesting ways. You’ll add unit tests to make sure your code is working the way you want. Once you’ve got the hang of wrangling your data into manageable chunks, you can use lambda expressions to refactor your C# code to make it easier to work with and more expressive.
Jimmy’s a Captain Amazing superfan...
Meet Jimmy, one of the most enthusiastic collectors of Captain Amazing comics, graphic novels, and paraphernalia. He knows all the Captain trivia, he’s got props from all the movies, and he’s got a comic collection that can only be described as, well, amazing.
...but his collection’s all over the place
Jimmy may be passionate, but he’s not exactly ...
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