foreach (set.row officeJoin in officeJoinMeta)
{
foreach (set.somethingRow confRow in myData.something.Rows)
{
string dep = confRow["columnName"].ToString();
depts.Add(dep);
}
}
I've got this for-loop going through a column, adding each value in a column to dep, and later storing all these in a List < String > depts which i defined at the top of this method.
Some of the values in the dep are single strings like "R" but some are need to be separated after the comma "R,GL,BD".
I understand using .Split(","), but how do i split strings--how do i get each value in the array, split them with the comma, then store them in another array?