Is there any way to instantiate a class based it name from different project/.dll without using dll = Assembly.LoadFile(@"c:\Test.dll"); and do dll.CreateInstance(className);
I want to be able to load different class which implementing a common Interface in my application without need recompiling (something like a plugin). The dll is in the application path.
You’ll need to know which assembly to load it from somehow… then you can use
Type.GetType(name)where the name you pass is qualified with the assembly name as well.