12 Using IAsyncEnumerable<T> and yield return
This chapter covers
- Using the generic
Queue
data structure - Using
yield return
andIAsyncEnumerable<T>
- Creating views
- Using private getters and setters with auto-properties
- How structs differ from classes
- Using
checked
andunchecked
keywords
In the previous chapters, we examined the codebase we inherited and noted where we could make improvements. Then, we partially implemented our version of the codebase, adhering to FlyTomorrow’s OpenAPI specification. In chapters 10 and 11, we implemented the BookingService
class and decided that there was no need for a CustomerService
class. Figure 12.1 shows where we are in the scheme of the book.
Get Code like a Pro in C# now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.