Newbie question: late-bound components

L

las

I am transitioning from the COM world to .Net, and can't find an answer

to a fundamental question.

How do I late-bind to classes that did not exist at the time I wrote my

application?

I don't need to be spoon fed how to do it, but am having trouble
navigating the documentation to find the answer myself.

I am writing a data handler application that will handle interactions
with various types of devices. There will be a base data handler that
would allow components to be plugged in for the various devices to be
supported, including new devices that don't exist right now.

In the COM world I would write a COM DLL for each device I am to
support, register that COM class on the computer, then create a
configuration file that lists the supported devices and the name of the

COM class. My base handler would then call CreateObject to instantiate

the device handlers as needed.

What's the approach in .Net?

Thanks!
Lee
 
B

Brendan Green

Start with looking at the System.Reflection namespace. And maybe
Activator.CreateInstance() and Activator.CreateInstanceFrom().
 

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

Top