Refactor Switch to Dictionary(www.kodefuguru.com)
submitted by
KodefuGuru(2599) 2 years ago
In my post on Z3, I created an extension method for proving an equation. This extension method used a switch statement to analyze a result and return a string. This is a bad practice: the mapping of one type to another is trapped in code. Here's a better way.
|category: C#
|Views: 12
tags:
C# another
Everyones tags:
Your Tags: