Peter Nordberg
asked on
Convert C# lambda to vb.net code
Hi,
Can someone help me to convert the following code from C# to VB.Net?!
Thanks for your help!
Peter
Can someone help me to convert the following code from C# to VB.Net?!
var imagesFacade = App.WorkWith().Images();
imagesFacade.ForEach(
img =>
{
((IContentManager)imagesFacade.GetManager()).RecompileItemUrls(img);
}
).SaveChanges();
Thanks for your help!
Peter
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
What is return type of Images()?
are you using System.Linq?
ASKER
Yes, I've imported linq library. If I don't use lambda, how would it look in usual vb.net?
ASKER
Pointed me in the right direction
ASKER
Complains and says that the method ForEach is not known. I have imported all the libraries.
Peter