From the course: .NET Essentials: Working with LINQ
Unlock this course with a free trial
Join today to access over 22,600 courses taught by industry experts.
Challenge: Write select expressions - .NET Tutorial
From the course: .NET Essentials: Working with LINQ
Challenge: Write select expressions
(bright music) - [Instructor] For this code challenge, I'd like you to create a query that uses the query expression. And the data that you'll be working with comes from that DLL that I have. So I've already added a reference to this file to CourseLib. So find some example code where we get the web colors. And then once you have the web colors, you're going to show the color name like this, SpringGreen, LightYellow, and all the rest of the 140 colors. And then you're going to have a comma. And then after that, you're going to have a formula that looks like this. So this might be useful, let's say in JavaScript, where you're calculating a color value based on the individual red, green, and blue values. So it would look like this. Rgb, open and closed parentheses, and then the individual color value separated by commas. Now, optionally, I have two optional requirements. Format the number value with three places. So…
Contents
-
-
-
-
-
-
-
-
The three types of query expressions2m 16s
-
(Locked)
Review query expression clauses4m 45s
-
(Locked)
Examples of three query expressions3m 16s
-
(Locked)
The select clause6m 26s
-
(Locked)
Learn how to use select to project into another type2m 41s
-
(Locked)
Select into anonymous type2m 16s
-
(Locked)
Learn how to use expressions with select2m 15s
-
(Locked)
Challenge: Write select expressions1m 28s
-
(Locked)
Solution: Write select expressions1m 27s
-
(Locked)
Index into another sequence2m 58s
-
-
-
-
-
-
-
-
-
-