I\'m wondering if there is built-in .NET functionality to change each value in an array based on the result of a provided delegate. For example, if I had an array {1,
{1,
Using System.Linq you could do something like:
var newArray = arr.Select(x => myMethod(x)).ToArray();