// Assign array to string //
string[] array = new string[$a];
// Split array //
array[0]="root";
array[1]="snapp";
like this ......
// Call the methods.////
//
string result1 = ConvertStringArrayToString(array);
// Display the results.
//
Console.WriteLine(result1);
static string ConvertStringArrayToString(string[] array)
{
StringBuilder builder = new StringBuilder();
foreach (string value in array)
{
builder.Append(value);
builder.Append(',');
}
return builder.ToString();
}
Since i am new to c# hope this help full....