I have several resource resource DLLs that I load when the application starts using the following code:
Assembly ass = Assembly.LoadFrom (fi.FullName);
Type t = ass.GetTypes () [0];
string ns = t.Namespace;
BaseFacade bf = Activator.CreateInstance (t) as BaseFacade;
// bf.GoWild () ...
When I have this BaseFacade, I love the function call function to get resources from the DLL, and it all works great. However, this initial LoadFrom is extremely slow, and for 10 DLLs it takes me more than 30 seconds.
So, I was wondering about alternative approaches? Are there any I was wondering if it is possible to do something like:
[DllImport ("myResources1.dll")]
public static extern void GoWild ();
[DllImport ("myResources2.dll")]
public static extern void GoWild ();
?? , GoWild ? , DLL, , DLL ( DLL)?
!