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
How do I make a dll in c#?
Are arraylist faster or arrays?
Why are dynamic link library used over static one?
Explain the process of polymorphism with an example?
List out the differences between array and arraylist in c#?
What is using directive in c#?
What is difference between constants and read-only?
How are methods overloaded?
Is string nullable c#?
Can property be private in c#?
what will be the output of the given below coding. using System; public class Exercise { static void OddNumbers(int a) { if (a >= 1) { Console.Write("{0}, ", a); a -= 2; OddNumbers(a); } } public static int Main() { const int Number = 9; Console.WriteLine("Odd Numbers"); OddNumbers(Number); Console.WriteLine(); return 0; } }
What is command object in c#?
Is there hashmap in c#?
Why does my windows application pop up a console window every time I run it?
How do I port "synchronized" functions from visual j++ to c#?