Click here to Skip to main content
15,907,913 members
Home / Discussions / C#
   

C#

 
Questionneeds advice in xmlserialize arraylist. [modified] Pin
cyn821-Aug-07 21:43
cyn821-Aug-07 21:43 
hi,
imagine that i have five arraylists(ShapeTypeList,ColorList,CoordList,SizeList,PathList). All contains different types such as enum,Color,Point[] and etc. This arraylist is used in the form to store information on the Shapes to be drawn onto the form. Then, there is a Save function which is used to store all the informations in the arraylist using xml. I've create a AllData class inorder to serialize the class to an xml file. Can anybody give me some guides or tips on how to use xmlserializer to save the arraylist into xml file? the format i'm looking for is as below:

<RootClass>
<Arraylist1>
<ArrayItem1a>....</ArrayItem1a>
</ArrayList1>
<ArrayList2>
<ArrayItem2a>....</ArrayItem2a>
<ArrayItem2b>....</ArrayItem2b>
.......
........
........
</ArrayList5>

However other format also acceptable as long as i can deserialize it later.

Thanks in advance.


-- modified at 3:59 Wednesday 22nd August, 2007
AnswerRe: needs advice in xmlserialize arraylist. Pin
Hessam Jalali22-Aug-07 0:26
Hessam Jalali22-Aug-07 0:26 
Question[Message Deleted] Pin
svignesh21-Aug-07 21:29
svignesh21-Aug-07 21:29 
AnswerRe: Connection string Pin
Giorgi Dalakishvili21-Aug-07 21:59
mentorGiorgi Dalakishvili21-Aug-07 21:59 
AnswerRe: Connection string Pin
J4amieC21-Aug-07 22:00
J4amieC21-Aug-07 22:00 
QuestionHow to use Syste,.data.common.DbConnection variable ? Pin
nicolus21-Aug-07 21:24
nicolus21-Aug-07 21:24 
AnswerRe: How to use Syste,.data.common.DbConnection variable ? Pin
Talal Sultan21-Aug-07 21:31
Talal Sultan21-Aug-07 21:31 
GeneralRe: How to use Syste,.data.common.DbConnection variable ? Pin
Colin Angus Mackay21-Aug-07 22:22
Colin Angus Mackay21-Aug-07 22:22 
GeneralRe: How to use Syste,.data.common.DbConnection variable ? Pin
Talal Sultan21-Aug-07 22:33
Talal Sultan21-Aug-07 22:33 
GeneralRe: How to use Syste,.data.common.DbConnection variable ? Pin
Vasudevan Deepak Kumar21-Aug-07 23:40
Vasudevan Deepak Kumar21-Aug-07 23:40 
AnswerRe: How to use Syste,.data.common.DbConnection variable ? Pin
Nissim Salomon21-Aug-07 21:56
Nissim Salomon21-Aug-07 21:56 
AnswerRe: How to use Syste,.data.common.DbConnection variable ? Pin
nicolus21-Aug-07 22:19
nicolus21-Aug-07 22:19 
QuestionListbox control Pin
Ankit Aneja21-Aug-07 21:20
Ankit Aneja21-Aug-07 21:20 
AnswerRe: Listbox control Pin
Giorgi Dalakishvili21-Aug-07 22:01
mentorGiorgi Dalakishvili21-Aug-07 22:01 
GeneralRe: Listbox control Pin
Ankit Aneja21-Aug-07 23:51
Ankit Aneja21-Aug-07 23:51 
GeneralRe: Listbox control Pin
Giorgi Dalakishvili22-Aug-07 0:02
mentorGiorgi Dalakishvili22-Aug-07 0:02 
AnswerRe: Listbox control Pin
Hessam Jalali21-Aug-07 22:09
Hessam Jalali21-Aug-07 22:09 
GeneralRe: Listbox control Pin
Ankit Aneja22-Aug-07 0:53
Ankit Aneja22-Aug-07 0:53 
GeneralRe: Listbox control Pin
Hessam Jalali22-Aug-07 1:12
Hessam Jalali22-Aug-07 1:12 
GeneralRe: Listbox control Pin
Hessam Jalali22-Aug-07 1:17
Hessam Jalali22-Aug-07 1:17 
QuestionIdentifying file is in use Pin
N a v a n e e t h21-Aug-07 21:16
N a v a n e e t h21-Aug-07 21:16 
AnswerRe: Identifying file is in use Pin
Giorgi Dalakishvili21-Aug-07 22:03
mentorGiorgi Dalakishvili21-Aug-07 22:03 
GeneralRe: Identifying file is in use Pin
Martin#21-Aug-07 22:24
Martin#21-Aug-07 22:24 
GeneralRe: Identifying file is in use Pin
Giorgi Dalakishvili21-Aug-07 22:26
mentorGiorgi Dalakishvili21-Aug-07 22:26 
GeneralRe: Identifying file is in use Pin
Martin#21-Aug-07 22:33
Martin#21-Aug-07 22:33 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.