Making Switch Refactorings Better – Defaultable Dictionary

I’ve written before on the idea of refactoring a switch to a Map or Dictionary. There is one major problem that I have been running into though.  Switch statements and dictionaries are not functionally equivalent for one major reason… Switches allow for default I kept struggling with this when I would implement a dictionary to replace a switch.  How can …