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

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