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
What are the types of serialization?
how to insert the data from the grid view to database table though button click.pls send the answer to mail id suri1319@gmail.com
What is a method signature in c#?
Is stringbuilder faster than string concatenation c#?
Explain nullable types in c#?
Why we use get and set method in c#?
Why static variables are used?
Explain clr in brief.
Should I use double or float?
How to find type of variable?
What are collections in c#?
Explain the ways to deploy an assembly?
What is type keyword in c#?
What is delimiter in c#?
Is namespace a class?