CSharp 从资源文件中动态加载DLL

1        System.Resources.ResourceManager rm =  new System.Resources.ResourceManager(GetType().Namespace +  " .Properties.Resources ", System.Reflection.Assembly.GetExecutingAssembly());
2 
3              byte[] bytes = ( byte[])rm.GetObject(dllName);
4 
5              return System.Reflection.Assembly.Load(bytes);

你可能感兴趣的:(dll)