Dynamically instance a class

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



I have a setting in my database where the user specifies a tax configuration (e.g. "UK/EU") and I have several tax classes that handle these different configurations. So what is the best way to instance the proper class based on what is in this configuration parameter. I could use a simple switch statement but it seems like there should be a better way.
.