I generally don’t like too much ‘sugar’ being added to C# but Switch Expressions from C# 8 really can improve readability a lot …
Are you using switch expressions in your apps?
Example below is courtesy of ChatGPT 😉 …

Grab Your Free C# Cheat Sheet!
Download "C# Essentials: A Developer's Cheat Sheet" for key syntax, tips, and quick references. Perfect for developers of all levels!
👉 Download your free copy now!Need Help with Your C# Projects?
We offer expert support and development services for projects of any size. Contact us for a free consultation and see how we can help you succeed.
CONTACT US NOW