A
Arjen
Hello,
I'm currently doing this:
ObjectA[] aObjectA = new ObjectA[ObjectA.tabel.Count];
ObjectA.tabel.Values.CopyTo( aObjectA, 0 );
XmlSerializer x = new XmlSerializer( typeof(ObjectA[]) );
TextWriter writer = new StreamWriter( "DATA.xml" );
x.Serialize( writer, aObjectA );
And this is working perfectly!
Now I have also a ObjectB.
I want to serialize this in the same DATA.xml file.
Can somebody give me an example how to do this?
Thanks!
I'm currently doing this:
ObjectA[] aObjectA = new ObjectA[ObjectA.tabel.Count];
ObjectA.tabel.Values.CopyTo( aObjectA, 0 );
XmlSerializer x = new XmlSerializer( typeof(ObjectA[]) );
TextWriter writer = new StreamWriter( "DATA.xml" );
x.Serialize( writer, aObjectA );
And this is working perfectly!
Now I have also a ObjectB.
I want to serialize this in the same DATA.xml file.
Can somebody give me an example how to do this?
Thanks!