Convert `List` to comma-separated string

前端 未结 6 1723
梦毁少年i
梦毁少年i 2020-12-09 00:33

Is there a fast way to convert List to a comma-separated string in C#?

I do it like this but Maybe there is a faster or more

6条回答
  •  北海茫月
    2020-12-09 01:15

    That's the way I'd prefer to see if I was maintaining your code. If you manage to find a faster solution, it's going to be very esoteric, and you should really bury it inside of a method that describes what it does.

    (does it still work without the ToArray)?

提交回复
热议问题