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
What is the solution if you need to manipulate sets of items?
What are Uses of CLR
How do we achieve encapsulation in c#?
What is tuple in c#?
What are the Types of caching
What is different between Boxing and Unboxing?
Why do we use yield in c#?
Is c# queue thread safe?
What is type safe in c#?
Can namespace contain the private class?
Is dll a library?
What is the concept of strong names?
What is asp net c#?
Can we write class inside a class in c#?
What is the difference between overriding and overloading in systemverilog?