Is is possible to user Activator.CreateInstance() to instantiate a type given the Type.FullName and Assembly Name even though the assembly is not referenced by the executing assembly?
Is is possible to user Activator.CreateInstance() to instantiate a type given the Type.FullName and
Share
Yes, first you have to load the assembly.
Suppose you have a “plugins” folder to look into:
Now assemblies are loaded and you can create the type using Activator.CreateInstance.