Memento vs State Pattern in C#: Key Differences Explained
Compare the memento vs state pattern in C# with code examples, use cases, and guidance on choosing the right behavioral pattern for state management.
C# and .NET by Nick Cosentino
Practical, in-depth content for software engineers and technical leaders. Learn C#, .NET, software architecture, AI-assisted development, and engineering leadership with guidance you can apply on your team today.

The latest articles on software engineering, architecture, AI, and career growth.
Compare the memento vs state pattern in C# with code examples, use cases, and guidance on choosing the right behavioral pattern for state management.
This week digs into Entity Framework Core from setup through CRUD operations and schema migrations, plus a deep run on the Memento pattern and other C# design patterns like Interpreter and Mediator. New videos cover tackling tech debt, build vs buy decisions, and growing into senior and leadership roles.
Complete guide to EF Core migrations in .NET 10 -- add, apply, squash, seed data with UseSeeding, revert, and run migrations safely in CI/CD pipelines.
How to implement the interpreter pattern in C# with step-by-step code examples for expression parsing, AST construction, and evaluation.
Go deeper into the core topics on Dev Leader, from .NET and AI to software engineering and career growth.