string test = "程$曉$";
使用:string[] temp = test.Split(new string[] { "$" }, StringSplitOptions.RemoveEmptyEntries);
輸出結果:數組長度為2 temp[0]="程" temp[1]="曉";
使用:string[] temp = test.Split(new string[] { "$" }, StringSplitOptions.None);或string[] temp = test.Split('$');
輸出結果:數組長度為3 temp[0]="程" temp[1]="曉" temp[2]="";
參考:http://www.cnblogs.com/chengxiaohui/articles/1815104.html