How do I design a type that loads it’s properties from the App.Config file in the same way that SMTPClient class, or a TraceListener would? What standards should I follow when doing this?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Look into the ConfigurationSection class and the ConfigurationElement class
Here is a nice tutorial article http://msdn.microsoft.com/en-us/library/2tw134k3.aspx
and here is a snipped of the system.net configuration group from the machine.config