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
How boxing and unboxing occures in memory?
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?
What is namespace in .net?
What is the advantage of packaging over xcopy in .net?
What's wrong with a line like this? Datetime.parse(mystring);
Explain the procedure to add assemly to gac to make it shared one?
How to debug failed assembly binds?
What is the difference between an abstract class and an interface?
What is dot net and its uses?
Explain how do assemblies find each other?
Is .net a programming language?
What is the difference between asp.net and asp?
Tell us the difference between managed and unmanaged code?
What are asp.net authentication providers and iis security?
What does stateless mean?