如何从一个.resx文件条目的注释 [英] How to get the comment from a .resx file entry

查看:186
本文介绍了如何从一个.resx文件条目的注释的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在资源文件字符串有一个名称,一个值和注释结果
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>类:<一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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆