C#.NET 字符串转数组,数组转字符串

            string str = "1,2,3,4,5,6,7";
            string[] strArray = str.Split(','); //字符串转数组
            str = string.Empty;
            str = string.Join(",", strArray);//数组转成字符串

 

posted @ 2014-07-22 20:13  王若伊_恩赐解脱  阅读(91193)  评论(4编辑  收藏  举报