App config Files

D

DaveP

Hi all...
Looking for some advice
We have alot of services in vb6 and im re-writing them in c#...they all use
xml files for start up config
i want to write a class to support these files...
is the best way to build collection object from the xml files
thanks
DaveP
 
G

Guest

Why don't you just convert your XML "files" into the standard App.Config
schema? You can use the appSettings section for most stuff, and the
System.Configuration.ConfigurationManager class methods / properties to read
them.

Peter
 
S

sloan

You should look into

"Custom Handers" for app.config files.

Go here;
2/8/2006
Smarter Email/Smtp setup with DotNet Configuration Sections (1.1 and 2.0)
http://sholliday.spaces.live.com/blog/


You're not interested in the smtp/email stuff, you're interested in how I
read xml out of the app.config file, and turn it into custome object(s).


There is downloadable code.

See
// (
http://msdn.microsoft.com/library/d...uide/html/cpconcreatingnewsectionhandlers.asp )
// also see http://support.microsoft.com/default.aspx?scid=kb;en-us;309045
// Article ID : 309045

But the code I have will demo it much faster.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top