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 generics? can u explain 5 to 6 examples on generics that covers class,method,structure,list,delegates?

1 Answers   CTS,


What is the difference between virtual method and abstract method?

1 Answers  


What is boxing & unboxing?

1 Answers  


What is difference between an Structure and Class?

1 Answers  


Which is better python or c#?

1 Answers  


Why singleton is sealed?

1 Answers  


What is sqldatareader c#?

1 Answers  


What is namespace give the example?

1 Answers  


List the fundamental oop concepts?

1 Answers  


What is the use of functional interface?

1 Answers  


What is the namespace for the thread class?

1 Answers  


What?s the top .NET class that everything is derived from?

3 Answers  


Categories