Use of resource manager class, DOT NET Programming

What's the use of resource manager class?

The ResourceManager class helps us to read the resource files and get the values by using key. At First you require to create the object of resource manager. You need to specify the resource name & the assembly in the constructor.

private ResourceManager objResourceManager = new ResourceManager("Globalization.resource",System.Reflection.Assembly.GetExecutingAssembly());

Once the resource manager is inhabited with details you can then use the GetString function to get by key. For illustrate in the below code snippet we are using the "cmdAddNew" key to get the value for button "cmdAddNew".

cmdAddNew.Text = objResourceManager.GetString("cmdAddNew");

Posted Date: 9/25/2012 3:47:32 AM | Location : United States







Related Discussions:- Use of resource manager class, Assignment Help, Ask Question on Use of resource manager class, Get Answer, Expert's Help, Use of resource manager class Discussions

Write discussion on Use of resource manager class
Your posts are moderated
Related Questions
Downloadable software for a PC computer and Mac Project Description: "The software" can be sold as a downloadable purchase. I must have all copy rights to "the software" when


I am seeking to get a logo design for a business. Skills required: .NET, HTML, Graphic Design, PHP, Website Design

Project Description: Take a CSV of Canadian street addresses. For every address, translate the address into a GPS coordinate. Use the GPS coordinate to test whether or not the a


Finding Average of Array Elements - C# Program I need assignment help for Finding Average of Array Elements in C#. Can anybody send me there ideas?

What is garbage collection? Explain the difference among garbage collections in .NET 4.0 and earlier versions. Garbage collection stops memory leaks during execution of pro

Describe IUKNOWN interface All COM object supports atleast one interface, that isĀ  IUnknown interface. All interfaces are the classes, derived from the base class IUnknown. Eve

What is managed code and managed data? Managed code is code that is written to target the services of the Common Language Runtime. In order to target these services, the code m

What are the benefits of using of ADO.NET in .NET 4.0. The following are the benefits of using ADO.NET in .NET 4.0 are as follows: Language-Integrated Query (LINQ) - Adds