[Mono-dev] serialization of structured data in ArrayList
robertj at gmx.net
Sun Dec 18 11:08:11 EST 2005
> i try to use serialization for storing of configuration in my app. the
> problem is, i've got some data stored in ArrayList, and they are not
> primitive types - they are instances of classes or some structs. so it
> looks like this:
> public class Entry
> public string type;
> public int price;
> public class CConfiguration
> public ArrayList vehicle;
> // in my app...
> Entry e = new Entry();
> e.type = "truck";
> e.price = 200;
> vehicle.Add( e );
> but it doesnt work. how can i do that?
What doesn't work? Did your get an exception? If so, which one?
More information about the Mono-devel-list