rbulph Posted November 4, 2005 Posted November 4, 2005 If I have a System.Type (called sType say), how can I create an object of the type that it represents from it? I would think either I need something like CreateObject(sType) or sType should have a function to do this, but I can't find either. Hmm. Quote
Leaders dynamic_sysop Posted November 4, 2005 Leaders Posted November 4, 2005 use Activator.CreateInstance( " yourType here " ) Quote
rbulph Posted November 4, 2005 Author Posted November 4, 2005 use Activator.CreateInstance( " yourType here " ) Lovely Jubbly. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.