G
Guest
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.
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.