The first 200 students can use code PATTERNS20 to get 20% off our 3 new bundles containing 23 new courses:
Creational Design Patterns in C# , Structural Design Patterns in C# and Behavioral Design Patterns in C# !

Design Patterns in C#: Iterator

Learn everything there is to know about the Iterator Design Pattern

The Iterator Design Pattern is a core design pattern in software engineering, widely used to provide a standard way to access elements of a collection sequentially without exposing its underlying structure. This pattern is essential for developers, as it promotes a consistent approach to traversing data structures, improving code readability and flexibility. The Iterator pattern is particularly useful in applications that handle diverse data structures, enabling iteration over complex collections like lists, trees, or graphs. In this course, Amichai Mantinband will teach you everything you need to understand and implement the Iterator pattern, empowering you to create organized, maintainable, and accessible applications.

Curriculum

Definition

04:03

Class Diagram

04:27

Prime Number Iterator Example

04:13

Iterator, AKA Cursor

02:18

Section Recap

02:32

Implementing the Iterator Design Pattern

13:39

Implementing the Prime Number Iterator Example

12:01

The Iterator Design Pattern vs .NET Enumerables

06:16

Section Recap

01:43

Benefits

03:52

Drawbacks

02:48

Conclusion

00:31

Course Info

Level:
Design Patterns
Duration:
59m
Rating (New):
star

Starting at

$59.99

per month

Subscribe to Pro

About the Author

author_img

Amichai Mantinband

Amichai Mantinband is a Software Engineer at Microsoft and a .NET content creator.
He works on large-scale, distributed systems within Microsoft Office, serving over 100 million daily users. He is a speaker at official .NET conferences, and within Microsoft, he authors and teaches software architecture courses.
Amichai is the author of NuGet packages ErrorOr & Throw and has a .NET programming YouTube channel covering advanced topics such as design patterns, architecture, and best practices.

More courses by Amichai Mantinband