Convert from C# to VB

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

How to convert the following code from C# to VB.

var photos = (from photo in xroot.Element("photos").Elements("photo")
select new PhotoInfo
{
Id = (string)photo.Attribute("id"),
Owner = (string)photo.Attribute("owner"),
Title = (string)photo.Attribute("title"),
Secret = (string)photo.Attribute("secret"),
Server = (string)photo.Attribute("server"),
Farm = (string)photo.Attribute("Farm"),
}).Skip(pageIndex*Columns*Rows).Take(Columns*Rows);

Thanks!
 
Chrysan said:
Nobody know?

Please help......thanks!

The sample code you posted is written for a preview of the next version of
the C# compiler and there is no equivalent for the current VB8 compiler.
Similar syntax will be supported by the next version of the VB compiler too.
 
Back
Top