C#.NET - Explain the purpose of ResourceManager
class. - June 05, 2009 at 11:00 AM by Shuchi Gauri
Explain the purpose of ResourceManager class. What namespace contains it?
Use ResourceManager class to retrieve resources that exist in an assembly. Steps
to do so are:
a. create a reference to the assembly that has the resources.
b. create an instance of ResourceManager.
c. specify the base name of the resource file and provide the reference to the
assembly that contains it.
d. Use the ResouceManager's GetObject or GetString method to retrive the
resource.
System.Resources namespace contains it.
Also read
ResourceManager class: It provides convenient access to resources that are
culture-correct. The access is provided at run time..........
Resource files are files in XML format. They contain all the resources needed by
an application. These files can be used to store string, bitmaps, icons,
fonts.............
Microsoft’s first popular web development technology was the Internet Database
Connector (IDC). The IDC methodology provided only database access; it did not
provide access to any other resource programmatically...............
Al.exe: It embeds the resources into a satellite assembly. It takes the
resources in .resources binary format.............
|