Click here to Skip to main content
15,916,951 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
This is my main list.
C#
List<List<int>> cover_index_code = new List<List<int>>();


within this list, there are sublists,
C#
List<int> coverIndex_copy = new List<int>


cover_index_code.Add(coverIndex_copy);
cover_index_code.Add(coverIndex_copy1);

Now I need to write "cover_index_code" in a XML file.

Please any one suggest ideas ?

Thanks in Advance!
Posted
Comments
F-ES Sitecore 9-Dec-15 4:30am    
Google "c# xml serialization"
BillWoodruff 9-Dec-15 5:19am    
This is easily serialized to XML using several different techniques/.NET code libraries.

I recommend you use WCF, and study 'DataContract and 'DataMember.

1 solution

 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900