Storing string collection using Configuration Block

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

What is the easiest way to store a collection of strings using the MS
Configuration Block? I am using XML serializer. I tried having an ArrayList
as a property in the class I was serializing, but when it is read back it is
no longer an arraylist of string values. Any ideas?
 
I am using Micosofts Configuration block, which serializes objects to xml and
reads them back. When I serialize something that contains an array list and
then read it back like:

MyClass = (MyClass)ConfigurationManager.Read("section");

then MyClass.ArrayList no longer contains the string objects.
 
Back
Top