Sep 23, 2021
For the code sample under "But there’s a very simple fix.", how do you work out what to pass in? It seems that the if/else/switch is unavoidable, it's either that or you have to use a Dictionary. But there has to be some way to decide what gets passed in.