I have a DLL assembly that I load with reflection. The DLL contains one function requiring two arguments and returns a dataset. I would like to load and run this assembly function in its own App Domain that can be unloaded once the dataset is returned.
The reason: once the function is called from the current domain, the DLL cannot be updated until the main program execution is terminated, I'm hoping that running it in its own app domain and unloading it will resolve this.
My problem: I can't seem to successfully pass in the function name and arguments and so haven't got far enough to see if I can get a dataset back.