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.
Course info
Rating
(27)
Level
Intermediate
Updated
Nov 9, 2019
Duration
44m
Table of contents
Description
Course info
Rating
(27)
Level
Intermediate
Updated
Nov 9, 2019
Duration
44m
Description

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
About the author

Marc is an accomplished technologist with extensive experience bringing the best of web, mobile, and traditional architectures to some of the largest firms in the world. Marc brings a unique combination of professionalism and passion to every venture and there are few things he's more passionate about than game development.

More from the author
Finite State Machines in Unity
Beginner
57m
Oct 9, 2019
More courses by Marc Gilbert
Section Introduction Transcripts
Section Introduction Transcripts

Course Overview
Hello, everyone. My name is Marc Gilbert. Welcome to this C# Design Patterns: State course here, at Pluralsight. I'm the owner and lead developer at Frivolous Twist, LLC, for a small consultancy dedicated to building games and applications for mobile platforms. Are you looking for a better way to manage state in your applications? Are your methods loaded with complex, conditional logic making them hard to follow and even harder to manage and debug? In this course, C# Design Patterns: State, you'll learn a tried and true technique for making your code cleaner, easier to maintain, and extremely extensible: the state design pattern. You'll begin with a review of state, learning what it is and the various ways it can be managed in your applications. From there, you'll get a conceptual overview of the state design pattern. You'll learn the principles that make it work, the components that make it up, and the benefits it brings to you as a developer and to all of your development projects. With this foundation laid, you'll get hands-on. You'll build your own implementation of the pattern in Visual Studio and get to see these benefits firsthand. By the end of this course, you'll have the knowledge and understanding required to elegantly manage state in your C# development projects using the state design pattern. I hope you'll join me as we explore these concepts and more in the C# Design Pattern: State course here, at Pluralsight.