C Sharp Design Patterns (CloudMonk.io)
C# Sharp Design Patterns
Also called Design Patterns in C Sharp | Design Patterns in C#
Return to Design Patterns or C Sharp | C# - Dot Net Core | .NET Core
C Sharp Design Patterns | C# Design Patterns
"Design patterns have evolved from years of experience in resolving frequently encountered problems when writing object-oriented software. These patterns are templates that provide developers with a blueprint on how to create flexible, easily maintainable applications. Like a building, design patterns can differ in style and form but not in purpose. Their purpose remains the same; to provide a solid structural framework for an application."
Related Topics:
* C# Design Patterns
** Structural Design Pattern
** Behavioral Design Pattern
** Creational Design Pattern
** C# Coding Practices
** C#
Fair Use Source: https://app.pluralsight.com/paths/skills/design-patterns-in-c
https://app.pluralsight.com/paths/skills/csharp
Singleton
* Singleton - C Sharp Singleton | C# Singleton
** https://app.pluralsight.com/library/courses/c-sharp-design-patterns-singleton
** "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."
** 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.
Applying the Singleton Pattern
Singleton Structure and Features
Demo: Naïve Singleton
Demo: Thread Safe Singleton
Analysis
Static Constructors and Singletons
Demo: Static Constructors and Singletons
Analysis
Lazy and Singletons
Demo: Lazy Singleton
Singletons are an Antipattern?
Singletons vs. Static Classes
Using Containers
Demo: Singleton Behavior with Containers
Analysis
Demo: Singleton Testing Considerations
Key Takeaways