在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
List<int> 转 string : list<int>: 1,2,3,4,5,6,7 转换成字符串:“1,2,3,4,5,6,7” List<int> list= new List<int>() { 1, 2, 3, 4, 5, 6, 7 }; string depaid = string.Join(",", list); string 转 List<int>: string s = "1, 2, 3"; List<string> list = new List<string>(s.Split(new string[] { ", " }, StringSplitOptions.RemoveEmptyEntries)); List<string> 转 List<int>
List<int> 转List<string> List<int> l1 = new List<int>(new int[] { 1,2,3 } ); List<string> l2 = l1.ConvertAll<string>(x => x.ToString()); C#中string[]数组和list<string>: System.String[] str={"str","string","abc"}; List<System.String> listS=new List<System.String>(str); 从List<System.String>转到System.String[] List<System.String> listS=new List<System.String>(); listS.Add("str"); listS.Add("hello"); System.String[] str=listS.ToArray();
|
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论