开发者

how to Convert to VB.NET code in linq

Please convert this code to VB.NET.

var catcopy2 = categories.AsEnumerable().Select(x =>开发者_Go百科 new CategoriesBackup() {
    CategoryID = x.CategoryID,
    CategoryName = x.CategoryName,
    Description = x.Description,
    Picture = x.Picture
});


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 _
})
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜