From the course: Ten Tips for the C# Developer
Unlock the full course today
Join today to access over 22,600 courses taught by industry experts or purchase this course individually.
Extract items from sequence with indices - C# Tutorial
From the course: Ten Tips for the C# Developer
Extract items from sequence with indices
- [Narrator] It's time to change up the editor, we'll use for editing and running the C-Sharp examples. Most of this course uses Visual Studio, but I have a couple examples that use LINQPad. For this example in this video, you have to have LINQPad 6 not LINQPad 5. You can get a free edition of LINQPad at linqpad.net. I'm using one of the paid editions, which in this case gives me some extra IntelliSense. You're probably asking why use this tool, instead of Visual Studio? Well, I'm a long time user of LINQPad, I think it's a great tool for working with LINQ queries. And it also supports Ad-hoc, C-Sharp applications. So rather than creating some sort of throw away, C-Sharp console application. I can try a sample code in LINQPad, without building that project in Visual Studio. Another reason I like LINQPad for this, is I've been thinking about it a lot lately, because I just finished recording a LINQ essential training. And…
Contents
-
-
-
Avoid race condition with TryGetValue method1m 46s
-
Better switch statements with pattern matching6m 42s
-
Readable literals with the underscore4m 8s
-
Extract items from sequence with indices9m 8s
-
Discard feature5m 3s
-
Be more functional with the conditional operator2m 42s
-
Create a thread-safe immutable type5m 13s
-
Use the ImmutableList collection4m 14s
-
Show custom debugger information4m 49s
-
Work with nested collections and SelectMany2m 45s
-
-