如何将多维数组数组保存到C#中的Properties.settings

时间:2015-11-08 22:20:27

标签: c#

如何将多维数组保存到Properties.Settings?如果我不能这样做或者不能轻易做到,我怎样才能将一维数组保存到Properties.Settings?

1 个答案:

答案 0 :(得分:0)

Properties.Settings有一个你可以使用的 System.Collection.Specialized.StringCollection 。它没有多维数组的任何东西。要保存,您需要遍历数组并使用StringCollection.Add方法将数组的每个元素添加到集合中。

See here