VB .Net Question:

Download Job Interview Questions and Answers PDF

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

VB .Net Interview Question
VB .Net Interview Question

Answer:

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.

Download VB .Net Interview Questions And Answers PDF

Previous QuestionNext Question
How do you inherit from a class in C#?Why is it not a good idea to insert code into InitializeComponent method when working with Visual Studio?