鹿我所录的博客

记录我在学习C#中的点点滴滴,记录下以备后来人借鉴。

 

2014年1月2日

C#中List〈string〉和string[]数组之间的相互转换

摘要: 1,从System.String[]转到ListSystem.String[] str={"str","string","abc"};List listS=new List(str);2, 从List转到System.String[]List listS=new List();listS.Add("str");listS.Add("hello");System.String[] str=listS.ToArray();详细出处参考:http://www.jb51.net/article/3239 阅读全文

posted @ 2014-01-02 20:08 鹿我所录 阅读(280) 评论(0) 推荐(0) 编辑

导航