字符串分割与存入List集合
List<string> namelist = new List<string>();
string[] namejh = null;
string name= "张三+李四+王五";
第一步:将三个名字分离出来
namejh = name.Split("+".ToCharArray(), StringSplitOptions.RemoveEmptyEntries);
namelist = new List<string>(namejh);
List<string> namelist = new List<string>();
string[] namejh = null;
string name= "张三+李四+王五";
第一步:将三个名字分离出来
namejh = name.Split("+".ToCharArray(), StringSplitOptions.RemoveEmptyEntries);
namelist = new List<string>(namejh);