locked
custom messages in resouce file RRS feed

  • Question

  • User1591608808 posted
    i came across an article that talks abt storing custom messages in resouce file as key-value pair, and later retrieve it like

    public static string GetString(string key)
    {

       // Create a resource manager to retrieve resources.
       ResourceManager rm = new ResourceManager("ExceptionManager.Exceptions", Assembly.GetExecutingAssembly());

       // Retrieve the value of the string resource and return it 
       CultureInfo ci = Thread.CurrentThread.CurrentCulture;
       String str = rm.GetString(key, ci);

       return str ;
    }

    is there any way to change the resource file without recompiling the application?

    thanks in advance

    Wednesday, September 7, 2005 4:08 AM

All replies