I'm new to C#, and apologies for the noob question - I'm trying to convert a list of strings to a single string so I can use it with WWWForm's POST function.
If I have a list of strings (e.g. kidIds = ["a#123", "b#123"]
), how do I easily convert it to a single string ("a#123, b#123"
)? In Javascript, I would simply do kidIds.join(",")
, but I'm not sure how to do it in C#.
I tried doing kidIds.ToArray().ToString()
, but it's not really giving me what I want. I could loop through the entire list using a for loop, but I was wondering if there's a simpler one liner I could use?