removeemptyentries专题

Split参数StringSplitOptions.RemoveEmptyEntries的使用

string test = "程$晓$";   使用:string[] temp = test.Split(new string[] { "$" }, StringSplitOptions.RemoveEmptyEntries);   输出结果:数组长度为2 temp[0]="程" temp[1]="晓";     使用:string[] temp = test.Split

RemoveEmptyEntries

new char[] { '|' }, StringSplitOptions.RemoveEmptyEntries System.ArgumentException:DatagridViewComboBoxCell值无效