Wednesday, July 16, 2008

Read resource files from class library: resx files from dll

set up for resource files in Visual studio:





Add the below line in your class

ResourceManager rm = new ResourceManager("%NAMESPACE TO BE REPLACE WITH THE DEFUAT NAMESPACE OF LIBRARY%.ErrorMessages", Assembly.GetExecutingAssembly());
rm.GetString("%RESOURCE KEY HERE%");


thats it ,... to read resource in a dll from the same dll

No comments: