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
Define strong name in c#?
What does the initial catalog parameter define in the connection string?
Is datetime immutable c#?
What is the difference between Decorator and Adapter pattern?
What is multidimensional array in c#?
If a.equals(b) is true then a.gethashcode & b.gethashcode must always return same hash code.
In .NET how can you solve the DLL Hell problem?
Define mutex in C#?
What do you mean by the delegate in c#?
How long does it take to learn c# programming?
In a memory when you Box and Unbox a value-type what happens?
Can you store different types in an array in c#?
What are anonymous functions in c#?
What are bitwise logical operators?
What is the difference between struct and class c#?