1. 程式人生 > >C#將List和string按逗號拼接

C#將List和string按逗號拼接

看下程式碼:

            Func<List<string>, string, string> aFunc = (ls, str) =>
                {
                    return string.Join(",", str, ls.ToArray());
                };