获取程序集DLL中的文件名 [英] get name of files in an Assembly DLL
本文介绍了获取程序集DLL中的文件名的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
你好
我的DLL中有很多图像.
我需要从另一个DLL中获取此DLL中这些文件的名称.
我该怎么办?
感谢您的帮助.
Hello
I have many images in my DLL .
I need to get name of this files in my DLL from another DLL .
How do I this ?
Thanks for your help .
推荐答案
使用以下命令:
Use the following :
Assembly asm; // assign your assembly here
string[] all = asm.GetManifestResourceNames();
foreach (string one in all) {
MessageBox.Show(one);
}
这篇关于获取程序集DLL中的文件名的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文