问题:
Is there a function in C# to quickly convert some collection to string and separate values with delimiter? C#中是否有一个函数可以将某些集合快速转换为字符串并使用定界符分隔值?
For example: 例如:
List<string> names
--> string names_together = "John, Anna, Monica"
List<string> names
-> string names_together = "John, Anna, Monica"
解决方案:
参考一: https://stackoom.com/question/F01l/C-清单-string-用定界符字符串参考二: https://oldbug.net/q/F01l/C-List-string-to-string-with-delimiter
来源:oschina
链接:https://my.oschina.net/u/4438370/blog/4411256