Converting an Array of Strings to Integers
using System; using System.Linq; class Program/*from w w w . j a va2 s. c o m*/ { static void Main(string[] args) { string[] numbers = { "0042", "010", "9", "27" }; int[] nums = numbers.Select(s => Int32.Parse(s)).ToArray(); foreach(int num in nums) Console.WriteLine(num); } }