.Net - Join together all item of a list in a output string

后端 未结 4 1904
忘了有多久
忘了有多久 2021-02-11 14:31

How can I write a Linq expression (or anything else) that select item from a List and join them together ?

Example

IList data = new List<         


        
4条回答
  •  长情又很酷
    2021-02-11 14:47

    As Anthony Pegram wrote String.Join(delimiter, IEnumerable) is the best solution in .NET 4!

提交回复
热议问题