Add DLL reference during runtime?
-
im sure its possible to open up a dll during runtime so you can somewhat explore what objects are in it, but how do you do it? ive tried messing around with things in the System.Reflection, mostly with the Assembly object in that, but cant seem to figure it out. any ideas? thanks
-
im sure its possible to open up a dll during runtime so you can somewhat explore what objects are in it, but how do you do it? ive tried messing around with things in the System.Reflection, mostly with the Assembly object in that, but cant seem to figure it out. any ideas? thanks
It's fairly straightforward, look for the System.Runtime.Reflection namespace. You'll find Assembly.LoadXXX methods to load an assembly. Those methods return an Assembly reference, on which you can call
GetTypes()
. You can then iterate through theType
array returned by it and display whatever information you want to. Regards Senthil _____________________________ My Blog | My Articles | WinMacro