470,810 Members | 1,159 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 470,810 developers. It's quick & easy.

Putting Complex Datatypes into config file using system.configurat

In the system.configuration namespace, is there any way to save a Dataset or
any other custom structure in a section? I know how to make a class and
derive it from the section class; however, any properties I want to save
within that class have to be basic types. Right now if I try to use a complex
type, then I get an error that it could not find the converter.

In the configuration application block I could write datasets and any kind
of object type to the configuration files. I can't figure out a way to do
this with the system.configuration namespace unless I break apart each object
into more basic objects like string/int, etc. Do I have to revert to
converting the object to an xml file first on disk and then loading that xml
into an configxmldocument in system.configuration?

The programmer before me put datasets in the configuration sections, so I
would like to keep it the same so I don't have to worry about breaking other
code that depends on this structure.
Feb 8 '06 #1
0 892

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

4 posts views Thread by Eric Kincl | last post: by
4 posts views Thread by Christoph Bisping | last post: by
12 posts views Thread by James Norton-Jones | last post: by
2 posts views Thread by chrispragash | last post: by
reply views Thread by mihailmihai484 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.