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);
posted @ 2012-11-12 16:55  Joe-xXx  阅读(471)  评论(0编辑  收藏  举报