Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Another conversion from C# to VB.NET
Message
From
17/04/2013 09:56:40
 
 
To
17/04/2013 01:06:26
General information
Forum:
ASP.NET
Category:
Coding, syntax and commands
Environment versions
Environment:
VB 9.0
OS:
Windows 7
Network:
Windows 2003 Server
Database:
MS SQL Server
Application:
Web
Miscellaneous
Thread ID:
01571174
Message ID:
01571209
Views:
34
>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......
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform