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
Why we need get set property in c#?
What is an icollection in c#?
What does m mean in decimal c#?
What is a cs file?
Do extension methods have to be static?
What does out mean c#?
in object oriented programming, how would you describe encapsulation?
Is 0 an unsigned integer?
To create a localized application which namespaces are necessary?
What is delegate in c# interview questions?
Why we use get set property in c#?
How jit (just in time) works?
What is mvc in c#?
What is int16?
What is definition in c#?