Is there a good LINQ (or other) method for creating a new array by performing a conversion for each element of an existing array?
eg. alternative:
List<int> numbers = new List<int>(); foreach(string digit in stringArray) { numbers.Add(Convert.ToInt32(digit)); } return numbers.ToArray();
source share