开发者

how to Convert to VB.NET code in linq

开发者 https://www.devze.com 2023-02-16 20:22 出处:网络
Please convert this code to VB.NET. var catcopy2 = categories.AsEnumerable().Select(x =>开发者_Go百科 new CategoriesBackup() {

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

精彩评论

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