我有一个问题,我怎样才能分割字符串并使分割的字符串逐行显示?
细绳:
What is "that" ENUM "No", "Yes", "OK", "Cancel";
我想要数据表:
Name Type Comment
"that" ENUM "No" // all of them
"Yes" // should be
"OK" // in the same
"Cancel" // cell
一定是有string[] tmpList = tmp.Split(new Char[] { ' ',',', ';' }, StringSplitOptions.RemoveEmptyEntries);
然后attributeDEF.Rows.Add(new object[] { tmpList1[1], tmpList1[2], tmpList1[3] + "\n" + tmpList[a]+ "\n"});
有人可以给我一个线索吗?