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
Can we extend sealed class in c#?
What is assembly manifest?
what is object-oriented programming (oop) language?
Why dependency injection is used in c#?
Is void a class?
What is reflection c#?
Write a syntax for writing a event delegate.
What is c# most used for?
Which constructor is called first in c#?
What is the use of xmlserializer?
What is the difference between delegates and events in c#?
What Is The Difference Between The System.array.copyto() And System.array.clone()?
I was trying to use an out int parameter in one of my functions. How should I declare the variable that I am passing to it?
What is the syntax for calling an overloaded constructor within a constructor?
What is default constructor in c#?