How to use ResXResourceReader ?
-
Hi, My next question is about using resources in Web-forms application. I don't want to use binary resources files compiled by resgen.exe since my russian text seems to be broken inside binary file. So, as a solution, I want to use XML-based resource file. But I've been amazed that class ResourceManager doesn't work with .resx files. Is it true? The class ResXResourceReader doesn't contain GetString(string s) method. So, I have to use the same code to get string from ResXResourceCode: public string GetString(string rr) { foreach(DictionaryEntry entry in myResxRR) { if( entry.Key.ToString() == rr ) return entry.Value.ToString(); }; return ""; } Why is it so complex ? Will it reflect to a performance (enumeration of all string is not best solution) ? How to get string from ResXResourceReader? Yours sincerely, Alex Bash