Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Another conversion from C# to VB.NET
Message
De
17/04/2013 09:56:40
 
 
À
17/04/2013 01:06:26
Information générale
Forum:
ASP.NET
Catégorie:
Code, syntaxe and commandes
Versions des environnements
Environment:
VB 9.0
OS:
Windows 7
Network:
Windows 2003 Server
Database:
MS SQL Server
Application:
Web
Divers
Thread ID:
01571174
Message ID:
01571209
Vues:
33
>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......
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform