Converting an Array of Strings to Integers
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(); } }