当你的才华不能撑起你的野心时,就是你该选择学习的时候了!

C# string[] 转list<long>

List<long> sIds = ids.TrimEnd(',').Split(new char[] { ',' }).ToList().ConvertAll(s => long.Parse(s));

 

posted @ 2020-09-03 10:40  hofmann  阅读(2205)  评论(0)    收藏  举报