In the end I wrote a very simple C# parser that found the strings in the source code. This solved the problem I had and let me add “comments” to the strings to help the translators.
The comments were just read from C# comments in a “magic format”
(Sorry the parser is not good enough to allow anyone else to use it, it only just about works on my C# code base)
Вы можете использовать инструмент SysInternals Strings для просмотра строк в исполняемых и объектных файлах.
Вы должны иметь возможность сделать это с помощью отражения, взгляните на это:
http://msdn.microsoft.com/en-us/library/system.reflection.fieldinfo .isliteral.aspx
и
http://msdn.microsoft.com/en-us/library/system.reflection.fieldinfo.aspx