Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Adding a Reference in Runtime

Status
Not open for further replies.

Kostarsus

Programmer
Nov 30, 2000
86
DE
Hello,

I want to add a reference of an object in runtime. There is a little problem. In the face of development I don't know the reference. The data of the path of the dll and the name of the Object, which will be referenced is delivered in runtime, too.
Is there a way to solve this porblem?
If so, can anyone send an example for this problem?

In reguards
Kostarsus


 
I don't think you'll be able to dynamically reference a new namespace at runtime. You probably want to look at using reflection. Maybe using an interface for your external objects to inherit from might give you some known structure to work with.
 
Hi,

thanks for the tip with reflection. So I could find an good example in the MSDN.
If you are interessted, too. Here is the link:

cu Kostarsus

P.S. You are wrong. You can dynamically reference a namespace (in this case an assembly) in runtime :)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top