serialise a c# object based on a collection
Posted on 2004-11-30
ive got an object x1 with 2 vars v1 and v2 both protected (also tried them public)..
x1Col contains an arrayList of x1 objects
x1ColCats contains an arrayList of x1Cols objects..
I want to serialise the x1ColCats object to an xml file then reload back from the file once the app is restarted.
ive tried using a xmlserialiser object and using a streamwriter to write it out.. this works for the single x1 object but i cannot get it to work for the others..
Any ideas guys.. or have i missed something important out in the process.. ??