how do you retrieve the customized properties of a .NET
application from XML .config file? Can you automate this
process?

Answer Posted / saravankumar

Initialize an instance of AppSettingsReader class. Call the
GetValue method of AppSettingsReader class, passing in the
name of the property and the type expected. Assign the
result to the appropriate variable. In Visual Studio yes,
use Dynamic Properties for automatic .config creation,
storage and retrieval.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How boxing and unboxing occures in memory?

609


A developer company sends dlls to the client. Some client is not happy current functionality, so request some modification. Developer made some changes and send new dll to all clients. Some client is happy with old version, tell me minimal change to so that neither clients get affected?

513


What is namespace in .net?

602


What is the advantage of packaging over xcopy in .net?

589


What's wrong with a line like this? Datetime.parse(mystring);

563






Explain the procedure to add assemly to gac to make it shared one?

563


How to debug failed assembly binds?

604


What is the difference between an abstract class and an interface?

507


What is dot net and its uses?

546


Explain how do assemblies find each other?

575


Is .net a programming language?

528


What is the difference between asp.net and asp?

596


Tell us the difference between managed and unmanaged code?

523


What are asp.net authentication providers and iis security?

533


What does stateless mean?

636