Dynamic class instantiation

  • Thread starter Thread starter Jim Witt
  • Start date Start date
J

Jim Witt

How can a class inside a class (who is already instantiated) be
instantiated from a string whos value is the name of the class?

Thanks!
 
Jim said:
How can a class inside a class (who is already instantiated) be
instantiated from a string whos value is the name of the class?

Have a look at Activator.CreateInstance()

--
There are 10 kinds of people. Those who understand binary and those who
don't.

http://code.acadx.com
(Pull the pin to reply)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top