How to Convert Array to Comma Seperated String - ASP .NET

This example code is in C#.

string[] myArray = new string[] { "1", "2" };
string commaSeperated = String.Join(",", myArray);

Output:
1,2