Purpose of ResourceManager class - C#.NET

          

Interview questions

Explain the purpose of ResourceManager class


Next question>>                   Learn C#.NET
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.

Next question>>

Also read

Explain the concepts of resource manager class.

ResourceManager class: It provides convenient access to resources that are culture-correct. The access is provided at run time..........

What are resource files and explain how do we generate resource files?

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.............

Problems ASP.NET Solves

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...............

Define AL.EXE and RESGEN.EXE.

Al.exe: It embeds the resources into a satellite assembly. It takes the resources in .resources binary format............. 



Write your comment - Share Knowledge and Experience


 

 
Latest placement tests
Latest links
 
Latest MCQs
» General awareness - Banking » ASP.NET » PL/SQL » Mechanical Engineering
» IAS Prelims GS » Java » Programming Language » Electrical Engineering
» English » C++ » Software Engineering » Electronic Engineering
» Quantitative Aptitude » Oracle » English » Finance
Home | About us | Sitemap | Contact us | We are hiring