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



So how do you retrieve the customized properties of a .NET application from XML .config file? Can yo..

Answer / 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

More C Sharp Interview Questions

What does type safe mean in c#?

0 Answers  


What is datasource c#?

0 Answers  


how can i get this 123456789 1234 6789 123 789 12 89 1 9

1 Answers   Excel,


What is the difference between Singleton design pattern and Factory design pattern?

0 Answers  


how to stored and retrive video in Sql server using asp.net c#......?

0 Answers   Sans Pareil IT Services,


What is Dispose method in .NET?

3 Answers  


Explain the difference between a struct and a class?

0 Answers  


What do you mean by expression tree?

0 Answers  


Explain more on CLR

0 Answers  


Why multiple inheritance is not possible in c#

8 Answers  


what is the difference between interface and multiple interface?

0 Answers   Wipro,


What is early binding and late binding

12 Answers   ABC, Infosys, TATA,


Categories