如何从一个.resx文件条目的注释 [英] How to get the comment from a .resx file entry
问题描述
在资源文件字符串有一个名称,一个值和注释结果
在 ResXResourceReader
类给我访问的名称和值。结果
有没有一种方法来读取评论?
Strings in resource files have a name, a value and a comment
The ResXResourceReader
class gives me access to the name and the value.
Is there a way to read the comment?
推荐答案
您应该能够通过 ResXDataNode $ C $要获得
评论C>类:<一href=\"http://msdn.microsoft.com/en-us/library/system.resources.resxdatanode.aspx\">http://msdn.microsoft.com/en-us/library/system.resources.resxdatanode.aspx
您需要设置 UseResXDataNodes
标志对读者:<一href=\"http://msdn.microsoft.com/en-us/library/system.resources.resxresourcereader.useresxdatanodes.aspx\">http://msdn.microsoft.com/en-us/library/system.resources.resxresourcereader.useresxdatanodes.aspx
You will need to set UseResXDataNodes
flag on the reader: http://msdn.microsoft.com/en-us/library/system.resources.resxresourcereader.useresxdatanodes.aspx
这篇关于如何从一个.resx文件条目的注释的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!