• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 259
  • Last Modified:

Help Converting Lambda to VB.net

Can someone help me convert the following two lines of c# into VB.net ?
It confused the converter !

 string hr = string.Join(“|”, properties.Select(p => p.Name).ToArray());
            string l = string.Join(“|”, properties.Select(p => p.GetValue(item, null)).ToArray());

Open in new window

0
Dodsworth
Asked:
Dodsworth
  • 2
1 Solution
 
Éric MoreauSenior .Net ConsultantCommented:
dim hr as string = string.Join(“|”, properties.Select(function(p) p.Name).ToArray())
0
 
Éric MoreauSenior .Net ConsultantCommented:
forgot the second line!

dim l as string = string.Join(“|”, properties.Select(function(p) p.GetValue(item, nothing)).ToArray())
0

Featured Post

Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now