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

c# string[]转int[]

string[] typeStringArrayInRecord = { };
var typeArrayInRecord = new List<int>();
            if (typeStringArrayInRecord.Length > 0)
                typeArrayInRecord = Array.ConvertAll<string, int>(typeStringArrayInRecord, s => int.Parse(s)).ToList();

 

posted @ 2021-12-30 13:25  hofmann  阅读(259)  评论(0编辑  收藏  举报