Creating an instance from a System.Type object

  • Thread starter Thread starter Simon Jefferies
  • Start date Start date
S

Simon Jefferies

Hello,

How can I create an instance using a System.Type object?

Thanks
Simon
 
Hello,

How can I create an instance using a System.Type object?

Thanks
Simon

Look at the System.Activator class... Specifically, the CreateInstance
method:

Overloads Public Shared Function CreateInstance (_
ByVal type As Type _
) As Object

HTH
 

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