拆分字符串

split(String.split 方法)

string YE_Symptom;
string[] Symptom = YE_Symptom.Split(new char[] { ',' });   //用 "," 作为分割符 返回数组
         for (int i = 0; i < Symptom.Length; i++)
            {
                for (int j = 0; j < 11; j++)
                {
                    if (chklist.Items[j].Text == Symptom[i].ToString())
                    {
                        chklist.Items[j].Selected = true;
                    }
                }
            }

原文地址:https://www.cnblogs.com/zhc088/p/794384.html