Simple play icon Course
Skills

C# Design Patterns: Singleton

by Steve Smith

This course will teach you when and how to apply the Singleton design pattern (and other ways to achieve the same behavior) to ensure certain classes only have a single instance within your application.

What you'll learn

In this course, C# Design Patterns: Singleton, you’ll learn to apply the Singleton design pattern to enforce single instance behavior for certain classes. First, you’ll explore the need for limiting the number of instances of certain classes. Next, you’ll discover how to use the Singleton pattern to enforce this behavior. Finally, you’ll learn how to apply other (potentially better) approaches to solving this same class of problems. When you’re finished with this course, you’ll have the skills and knowledge of the Singleton design pattern needed to address the need to ensure certain classes only have a single instance in your applications.

About the author

Steve Smith (@ardalis) is an entrepreneur and software developer with a passion for building quality software as effectively as possible. He provides mentoring and training workshops for teams with the desire to improve. Steve has been recognized as a Microsoft MVP for over 10 consecutive years, and is a frequent speaker at software developer conferences and events. He is the top contributor to the official documentation on ASP.NET Core and enjoys helpings others write maintainable, testable app... more

Ready to upskill? Get started