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();
原文地址:https://www.cnblogs.com/hofmann/p/15748368.html