如何保存List< List< int>>在XML文件中

如何保存List< List< int>>在XML文件中

问题描述:

这是我的主要清单。

This is my main list.

List<List<int>> cover_index_code = new List<List<int>>();





在此列表中,有子列表,



within this list, there are sublists,

List<int> coverIndex_copy = new List<int>





cover_index_code.Add(coverIndex_copy) ;

cover_index_code.Add(coverIndex_copy1);



现在我需要在XML文件中写cover_index_code。



请提出任何建议吗?



先谢谢!



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!

请遵循以下解决方案:

C# - 保存列表< t>到XML文件 [ ^ ]

保存现有列表< t>进入c#中的XML文件 [ ^ ]
Follow these solutions:
C# - Save List<t> to XML file[^]
Save an existing List<t> into an XML file in c#[^]