string test = "程$晓$";
//数组长度为2 temp[0]="程" temp[1]="晓";
string[] temp = test.Split(new string[] { "$" },
StringSplitOptions.RemoveEmptyEntries);
//数组长度为3 temp[0]="程"
temp[1]="晓" temp[2]="";
string[] temp = test.Split(new string[] { "$"
}, StringSplitOptions.None);