Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to get the comment from a .resx file entry

Tags:

c#

resx

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?

like image 337
Orlando William Avatar asked Jan 13 '12 17:01

Orlando William


1 Answers

You should be able to get Comment via ResXDataNode class: http://msdn.microsoft.com/en-us/library/system.resources.resxdatanode.aspx

You will need to set UseResXDataNodes flag on the reader: http://msdn.microsoft.com/en-us/library/system.resources.resxresourcereader.useresxdatanodes.aspx

like image 70
Arnold Zokas Avatar answered Nov 15 '22 16:11

Arnold Zokas