Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. How to use ResXResourceReader ?

How to use ResXResourceReader ?

Scheduled Pinned Locked Moved ASP.NET
questionlinuxxmlperformancetutorial
1 Posts 1 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • B Offline
    B Offline
    Bash
    wrote on last edited by
    #1

    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

    1 Reply Last reply
    0
    Reply
    • Reply as topic
    Log in to reply
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes


    • Login

    • Don't have an account? Register

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • World
    • Users
    • Groups