0

Please convert this code to VB.NET.

var catcopy2 = categories.AsEnumerable().Select(x => new CategoriesBackup() {
    CategoryID = x.CategoryID,
    CategoryName = x.CategoryName,
    Description = x.Description,
    Picture = x.Picture
});
2
  • Have you tried just using Reflector or a similar decompiler? Which part of it is causing you difficulties? Commented Mar 14, 2011 at 7:42
  • accept answer if it works for you Commented Mar 15, 2011 at 6:42

1 Answer 1

1

check this tool : http://www.developerfusion.com/tools/convert/csharp-to-vb/

Dim catcopy2 = categories.AsEnumerable().[Select](Function(x) New CategoriesBackup() With { _
    Key .CategoryID = x.CategoryID, _
    Key .CategoryName = x.CategoryName, _
    Key .Description = x.Description, _
    Key .Picture = x.Picture _
})
Sign up to request clarification or add additional context in comments.

1 Comment

Why does VB have to uglify everything?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.