I'm having a bit of trouble working out how to decide the type of a generic at runtime.
For example what I would like to do is decide the type of a generic class depending on user input. The problem being the generic variable that needs to be assigned is a class property and I can't find a way of just declaring the property in a way like : MyClass<> _class; then doing a new assignment in a switch based on user input.
Anyone know a way to do this?