我如何读取.resx资源文件?

qaqaqa 2002-02-17 02:43:26
我自己在项目中添加了一个xxx.resx资源文件并写入了几个值,我如何读取.resx资源文件?
...全文
431 2 打赏 收藏 转发到动态 举报
写回复
用AI写文章
2 条回复
切换为时间正序
请发表友善的回复…
发表回复
icyer 2002-02-18
  • 打赏
  • 举报
回复
这里有两篇相关的文章,希望对你有所帮助:

http://www.cndot.net/article/show.asp?id=755
http://www.cndot.net/article/show.asp?id=757
chechy 2002-02-17
  • 打赏
  • 举报
回复
Assembly assembly;
ResourceManager rmManager;

assembly = Assembly.GetExecutingAssembly();
rmManager = new ResourceManager("YourAppFile.YourResFile", assembly);
string s = rmManager.GetString("Hello");

110,535

社区成员

发帖
与我相关
我的任务
社区描述
.NET技术 C#
社区管理员
  • C#
  • Web++
  • by_封爱
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告

让您成为最强悍的C#开发者

试试用AI创作助手写篇文章吧