Running methods stored in a DLL

I have virtually dozens of mini-apps (all of which are exe's) all being launched from the menu/toolbar of one main app.

Once I convert tha mini-apps into methods stored in various DLL's, Is there a way that I can load the method into memory from the main app when needed, and then remove it from memory when I'm done with it



Answer this question

Running methods stored in a DLL

  • J Hallam

    You cannot load methods you can only load types and you can only unload types from an AppDomain when the AppDomain itself unloads.

    What you could do is create a new AppDomain, load the types into that AppDomain and then unload the AppDomain when you are finished with it.


  • lkshikoh

    Must you compile them into a dll or could you use CreateProcess to call the executables

  • Running methods stored in a DLL