From the course: C#: Design Patterns Part 1
Unlock the full course today
Join today to access over 25,000 courses taught by industry experts.
Combining iterators in C# with LINQ - Python Tutorial
From the course: C#: Design Patterns Part 1
Combining iterators in C# with LINQ
- [Instructor] Iterators are pretty common in a real application, but you may not realize how common, or some of the details of using them in a more realistic C-sharp application. I've opened the HPlusSports folder within the GitHub repo in VS Code. We have HPlusSports , an over-architected application for what it does, because it's meant to represent a more complicated enterprise-style corporate sales system. Let's talk about some of the different iterators in the application and add a new one to expand the functionality of our order list. Let's open up the order service in the core project. To get the list of orders with customers, we're calling this method here. It's returning a list from this call To List Async, in the order controller, it's using that list under the web project and controllers. Let's say the business users have decided they don't want to see canceled orders in this list, so let's remove the…