Convert from C# to VB

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!
 
H

Herfried K. Wagner [MVP]

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top