C# Design Patterns: Strategy

by Filip Ekberg

In this course, you'll discover how to work with the strategy pattern, one of the most common patterns. You will understand why this pattern exists and how to implement this in a C# application.

What you'll learn

As your applications grow, you can often find areas which you want to extend. But due to lack of separation and coupling of concrete implementations this can sometimes be hard. An extremely common approach is to leverage interfaces to solve this, which brings us to the strategy pattern. In this course, C# Design Patterns: Strategy, you’ll learn foundational knowledge of the strategy pattern. First, you'll learn how to identify situations where this pattern is applicable. Next, you’ll discover how to easily refactor an application to leverage the strategy pattern, making the application extensible, testable, and easier to work with. Finally, you'll explore how to identify existing implementations of this pattern. When you’re finished with this course, you'll have the skills and knowledge of the strategy pattern needed to apply this in your solutions.

About the author

Filip is an enthusiastic developer that strives to learn something new every day. With over a decade of experience in .NET, Filip actively spreads his knowledge and ideas around the globe, be it speaking at conferences or online. Filip has worked in a range of different technologies such as WPF, Win Forms, ASP.NET, ASP.NET Core, and Xamarin. In 2012, Filip published the book C# Smorgasbord, covering a vast variety of different technologies and patterns using C#, and right after Filip was introdu... more

Ready to upskill? Get started