C# Design Patterns: State
Manage State in your application by learning how to use the State Design Pattern in C#. In this course, you will cover a design pattern for handling any situation based on context or state-based changes.
What you'll learn
Are you looking for a way to better manage state in your application? Are your methods loaded with complex condition logic that’s hard to follow, debug, and maintain? In this course, C# Design Patterns: State, you will learn a tried and true design pattern for handling any situation in which the behavior of entities in your application changes based on context or state. First, you will explore the concept of state including what it is and its implications for development. Next, you will review some traditional approaches to managing state like if-else statements and switches and examine their strengths and shortcomings. Then, you will be introduced to the State Design Pattern and learn why it exists and when to use it. Finally, you will get hands-on experience implementing the pattern in clean and concise way that you can use in any or all of your applications. When you’ve finished this course, you will have the skills and understanding required to implement this elegant solution to handling state in your applications.