作者热门文章
- android - RelativeLayout 背景可绘制重叠内容
- android - 如何链接 cpufeatures lib 以获取 native android 库?
- java - OnItemClickListener 不起作用,但 OnLongItemClickListener 在自定义 ListView 中起作用
- java - Android 文件转字符串
资源文件中的字符串有名称、值和注释ResXResourceReader
类让我可以访问名称和值。
有没有办法阅读评论?
最佳答案
您应该能够通过ResXDataNode
类获得Comment
:http://msdn.microsoft.com/en-us/library/system.resources.resxdatanode.aspx
您需要在阅读器上设置UseResXDataNodes
标志:http://msdn.microsoft.com/en-us/library/system.resources.resxresourcereader.useresxdatanodes.aspx
关于c# - 如何从 .resx 文件条目中获取注释,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8854404/
我是一名优秀的程序员,十分优秀!