That wasn't enough to outright help me. I searched on Activator.CreateInstance and found some good examples. However, I am having trouble with the GetType on the class.
When I put the following in the Watch window, it returns Nothing.
Type.GetType("CommonLookup
What might I be doing wrong?
Main Topics
Browse All Topics





by: bisonfur37Posted on 2006-04-13 at 14:10:06ID: 16449524
I would store the class name in a config file (e.g. App.Config) and use the Activator.CreateInstance method to generate the object at runtime.
Patterns/P atternAbst ract.aspx) .
Also, check out the Factory / Abstract Factory Design Patterns (http://www.dofactory.com/