阅读背景:

在C#中运行时加载DLL

来源:互联网 

I am trying to figure out how you could go about importing and using a .dll at runtime inside a C# application. Using Assembly.LoadFile() I have managed to get my program to load the dll (this part is definitely working as I am able to get the name of the class with ToString()), however I am unable to use the 'Output' method from inside my console application. I am compiling the .dll then moving it into my console's project. Is there an extra step between CreateInstance and then being able to use the methods?I am trying to figure out how you could go abou




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: