程晓晖

博客园 首页 新随笔 联系 订阅 管理

        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 2010-09-01 17:44  fumen  阅读(6588)  评论(1编辑  收藏  举报