如何保存List< List< int>>在XML文件中 [英] how to save List<List<int>> in a XML File

查看:64
本文介绍了如何保存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#[^]


这篇关于如何保存List&lt; List&lt; int&gt;&gt;在XML文件中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆