C#中List〈string〉和string[]数组之间的相互转换
原文链接:https://www.jb51.net/article/32390.htm
string[] strings = { "a", "b", "c", "abc" }; List<string> list = new List<string>(strings); string[] strings2 = list.ToArray(); Console.WriteLine(strings2);
原文链接:https://www.jb51.net/article/32390.htm
string[] strings = { "a", "b", "c", "abc" }; List<string> list = new List<string>(strings); string[] strings2 = list.ToArray(); Console.WriteLine(strings2);