C# Using Activator.CreateInstance
I asked a question yesterday regarding using either reflection or Strategy Pattern for dynamically calling methods. However, since then I have decided to change the methods into individual classes that implement a common interface. The reason being, each class, whilst bearing some similarities also perform certain methods unique to that class. I had been using a strategy as such: switch (method) { case "Pivot": return new Pivot(originalData); case "GroupBy": return new GroupBy(originalData); case "Standard deviation": return new StandardDeviation(originalData); case "% phospho PRAS Protein":