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 is the adv of using System.Text.StringBuilder over System.String?

0 Answers   Siebel,


How will U encapsulate button trigger event into text_box event of Pressing Enter key?

3 Answers   TCS,


Can class be protected in c#?

0 Answers  


What is the difference between overriding and overloading in systemverilog?

0 Answers  


Does hashset allow duplicates c#?

0 Answers  






Why is ienumerable used?

0 Answers  


How u call destructor and dispose methode in c#.NET

1 Answers  


write a program to find the biggest palindrome in the given string

0 Answers   Microsoft,


Is list immutable in c#?

0 Answers  


What does type safety mean?

0 Answers  


What is for loop in c#?

0 Answers  


What is verbatim string?

0 Answers  


Categories