C# for JavaScript developers: The C# Array.map() equivalent