📌  相关文章
📜  将字符串数组转换为 int C# 代码示例

📅  最后修改于: 2022-03-11 14:49:00.887000             🧑  作者: Mango

代码示例1
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));
    }
}