I've have this piece of code in C# which convert from one array to another:
IWebElement[] elements = Self.FindChildren()
Step[] steps = new Step[elements.Length];
for (int i = 0; i < elements.Length; i++)
{
steps[i] = new Step(elements[i]);
}
How can I write it in a shorter way (using linq or lambda expression) ?
Thanks
Omer