>I have this C# line:
>
>
>clonedArray.ForEach((array, indices) => array.SetValue(InternalCopy(clonedArray.GetValue(indices), visited), indices));
>
>
>being converted to:
>
>
>clonedArray.ForEach(Function(array, indices) array.SetValue(InternalCopy(clonedArray.GetValue(indices), visited), indices))
>
>
>from an online converter.
>
>However, I get:
>
>"Argument not specified for parameter 'action' of 'Public Shared Sub ForEach(Of T)(array() As T, action As System.Action(Of T))'"
>
>This approach of putting everything into one single line is extremely difficult to troubleshoot in such situation. If anyone would know how to simplify this on several lines and/or how to find why I have this designer error, that would be appreciated.
What type is clonedArray ? Sounds like it might be FieldInfo or PropertyInfo but......