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

LVL 1
DodsworthAsked:
Who is Participating?
 
Éric MoreauConnect With a Mentor Senior .Net ConsultantCommented:
forgot the second line!

dim l as string = string.Join(“|”, properties.Select(function(p) p.GetValue(item, nothing)).ToArray())
0
 
Éric MoreauSenior .Net ConsultantCommented:
dim hr as string = string.Join(“|”, properties.Select(function(p) p.Name).ToArray())
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.