C# 将 List<string> 转换为字符串
可以使用 string.Join 方法将 List<string> 转换为一个字符串。
例如:
List<string> list = new List<string>{'hello', 'world', '!'};
string result = string.Join(" ", list);
Console.WriteLine(result);
输出结果为:
hello world !
原文地址: https://www.cveoy.top/t/topic/mtNt 著作权归作者所有。请勿转载和采集!