📅  最后修改于: 2022-03-11 14:49:00.887000             🧑  作者: Mango
using System;
public class Example
{
public static void Main()
{
string[] strings = new string[] {"1", "2", "3"};
int[] ints = Array.ConvertAll(strings, s => int.Parse(s));
Console.WriteLine(String.Join(",", ints));
}
}