using System;
using System.Linq;
public class MainClass {
public static void Main() {
string[] numbers = { "0042", "010", "9", "2q7" };
int[] nums = numbers.Select(s => Int32.Parse(s)).ToArray();
}
}
We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.Ok