Simple play icon Course
Skills

C# Design Patterns: State

by Marc Gilbert

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.

About the author

Marc's passion for programming began in the mid 80's on an Apple IIe. He's been able to parlay that passion into a fruitful career; having served in leadership roles both in-house and as a consultant to Fortune 100 firms. Marc began working with Unity in 2011, releasing RavenToll in 2012 under Frivoloustwist. He's continued working with the engine ever since. Marc left Corporate America in 2016 to focus solely on game development. His firm, Frivoloustwist is currently engaged in helping to... more

Ready to upskill? Get started