So how do you retrieve the customized properties of a .NET application from XML .config file? Can you automate this process ?
Answer Posted / sudhanshu
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 does return work in c#?
How long has c# been around?
Why is it not a good idea to use empty destructors?
What is a virtual property. Give an example?
Why abstraction is used in c#?
what is full assembly reference
What is strong name in c# and how can we use it?
Why do we need private constructor in c#?
What is the use of 0 in c#?
What is difference between list and ilist in c#?
What are the desktop applications?
What is global namespace in c#?
Who benefits from ajax?
What is semaphore in c#?
what is a structure in c#