本文介绍了如何将文件添加到DLL运行时C#?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
你好
如何将文件添加到DLL运行时C#中?
我有一个DLL.我需要向DLL运行时添加许多文件(例如,图像).
我该怎么办?
感谢您的帮助
Hello
How to add file to DLL runtime c# ?
I have a DLL . I need to add many file (for example image) to my DLL runtime .
How do I this ?
Thank for your help
推荐答案
Assembly.Load("SampleAssembly, Version=1.0.2004.0, Culture=neutral, PublicKeyToken=8744b20f8da049e3");
然后阅读本文:
http://blogs.msdn.com/b/suzcook/archive/2003/05/29/57143.aspx [ ^ ]
还有
http://stackoverflow.com/questions/4711226/add-dll-programatically-at-运行时 [ ^ ]
Sysntax:
then Read this article:
http://blogs.msdn.com/b/suzcook/archive/2003/05/29/57143.aspx[^]
and also
http://stackoverflow.com/questions/4711226/add-dll-programatically-at-run-time[^]
Sysntax:
AssemblyName an = AssemblyName.GetAssemblyName(filePath);
Assembly.Load(an);
问候
sarva
regards
sarva
这篇关于如何将文件添加到DLL运行时C#?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!