LINQ Best Practices
This course will teach you how to fully harness the power of LINQ by exploring best practices and avoiding common pitfalls by solving fun and challenging problems.
What you'll learn
In this course, LINQ Best Practices, you’ll learn to take advantage of the power of LINQ in your C# programs. First, you’ll learn how to recognize situations in which LINQ can improve the expressiveness and readability of your code. Next, you’ll discover how to combine LINQ operators into pipelines and extend them with ad ditional capabilities.. Finally, you’ll learn how to ensure your performance. When you’re finished with this course, you’ll have the skills and knowledge of LINQ needed to work effectively with sequences of data.
Table of contents
- Module Introduction 2m
- LINQ Challenge 1: Motorsport Scores 4m
- Pro Tip: Know The Enumerable Extensions 3m
- Spot the Pattern 1: Filtering 2m
- Spot the Pattern 2: Finding One Item 3m
- Spot the Pattern 3: True For Everything? 3m
- Spot the Pattern 4: Transforming Objects 4m
- Spot the Pattern 5: How Many Like This? 2m
- Spot the Pattern 6: Grouping Things 3m
- Pro Tip: Use Productivity Tools 2m
- LINQ Challenge Solution: Motorsport Scores 4m
- Module Summary 1m
- Module Introduction 1m
- Transforming Elements 1m
- Filtering Elements 3m
- Reducing Sequences 2m
- Generating Sequences 1m
- Expanding Sequences 1m
- Reordering Sequences 2m
- The Power of Pipelines 1m
- LINQ Challenge: Album Duration 4m
- LINQ Challenge: Range Expansion 7m
- Real World LINQ: Find in Files 4m
- Real World LINQ: Parsing Log Files 4m
- Real World LINQ: Validating Enums 2m
- Module Summary 2m
- Optimizing Performance 4m
- When Should You Optimize? 3m
- Is LINQ Always the Right Choice? 3m
- Speeding up LINQ with PLINQ 3m
- Understanding the Implementation 5m
- Viewing LINQ Operator Source Code 2m
- Optimizing LINQ to Entities 4m
- Demo: Avoiding Returning Too Much Data 5m
- Demo: Avoiding Select N+1 3m
- Module Summary 2m
- Testing and Debugging Effectively 2m
- Demo: Debugging LINQ Queries in Visual Studio 4m
- Demo: Pipeline Tracing with Extension Methods 4m
- Testing LINQ Queries 5m
- Mocking Side Effects 3m
- Testing LINQ to Entity Framework 2m
- Exception Handling in LINQ Queries 4m
- Demo: Suppressing Exceptions in LINQ Pipelines 5m
- Demo: Implementing TrySelect 3m
- Module Summary 2m
- Module Introduction 2m
- The Problem with Async Methods in LINQ Pipelines 2m
- Introducing IAsyncEnumerable<T> 2m
- Demo: Generating IAsyncEnumerable<T> 2m
- Demo: Consuming IAsyncEnumerable<T> 1m
- Demo: Cancelling IAsyncEnumerable<T> 3m
- Using IAsyncEnumerable<T> in Pipelines 4m
- Demo: Calling Async Methods in Pipelines 3m
- Mixing Async with LINQ 2m
- Demo: IAsyncEnumerable<T> in Action 2m
- Demo: Using Parallel.ForEachAsync 3m
- Module Summary 2m