From the course: LINQPad Essential Training
Unlock this course with a free trial
Join today to access over 22,600 courses taught by industry experts.
What sources are valid for LINQ to Objects - LINQ Tutorial
From the course: LINQPad Essential Training
What sources are valid for LINQ to Objects
- [Instructor] Remember to switch branches before continuing in this course, you want to switch to the main branch, on my machine, I'm currently on chapter three. So I'll use the GIT checkout command and switch to the main branch. I've said it many times, LINQPad is a tool for evaluating and running .net code, not just LINQ quarries. However, it is perfect for testing LINQ syntax, and it's got tools for all the LINQ flavors, LINQ to objects, LINQ to XML, and all the LINQ to database versions too. This is the chapter where we look at the LINQ tools and syntax. All LINQ queries need a data source. Here's mine online three. For this example, I'm using a list of T of type string and working with LINQ to objects that data source must implement I enumerable of T. Now there is one exception to that rule and that is the array class. What I'm doing here as on line five, I'm using the dump extension method to dump out the list…
Contents
-
-
-
-
-
-
(Locked)
What sources are valid for LINQ to Objects1m 21s
-
(Locked)
Basic LINQ query operators2m 3s
-
(Locked)
Write LINQ query expressions1m 49s
-
(Locked)
Connect to a database2m 9s
-
(Locked)
Query the database with SQL1m 37s
-
Use the DataContext1m 47s
-
(Locked)
Query the database with a LINQ expression2m 34s
-
(Locked)
Configure an XML file as a data source2m 35s
-
(Locked)
Query the XML file1m 8s
-
(Locked)
Filter by attributes54s
-
(Locked)
-
-
-
-
-
-