Получение всех статических (интернированных) строк от блока.NET (dll)

UPDATE `table` SET table_column='test';
14
задан Peter Mortensen 30 July 2010 в 14:19
поделиться

3 ответа

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)

0
ответ дан 1 December 2019 в 13:10
поделиться

Вы можете использовать инструмент SysInternals Strings для просмотра строк в исполняемых и объектных файлах.

14
ответ дан 1 December 2019 в 13:10
поделиться

Вы должны иметь возможность сделать это с помощью отражения, взгляните на это:

http://msdn.microsoft.com/en-us/library/system.reflection.fieldinfo .isliteral.aspx

и

http://msdn.microsoft.com/en-us/library/system.reflection.fieldinfo.aspx

2
ответ дан 1 December 2019 в 13:10
поделиться
Другие вопросы по тегам:

Похожие вопросы: