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);

posted on 2012-06-13 16:33  染指的浮云  阅读(436)  评论(0编辑  收藏  举报