AppDomain.CurrentDomain.AssemblyResolve += new ResolveEventHandler(CurrentDomain_AssemblyResolve);
}
private Assembly CurrentDomain_AssemblyResolve(object o, ResolveEventArgs e)
{
Assembly ass = Assembly.LoadFrom(DllFile);
if (e.Name == ass.FullName)
{
return ass;
}
return null;
}
}
private Assembly CurrentDomain_AssemblyResolve(object o, ResolveEventArgs e)
{
Assembly ass = Assembly.LoadFrom(DllFile);
if (e.Name == ass.FullName)
{
return ass;
}
return null;
}