Solved

Help Converting Lambda to VB.net

Posted on 2014-02-21
2
254 Views
Last Modified: 2014-02-21
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
Comment
Question by:Dodsworth
  • 2
2 Comments
 
LVL 70

Expert Comment

by:Éric Moreau
ID: 39876652
dim hr as string = string.Join(“|”, properties.Select(function(p) p.Name).ToArray())
0
 
LVL 70

Accepted Solution

by:
Éric Moreau earned 500 total points
ID: 39876657
forgot the second line!

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

Featured Post

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In my previous article (http://www.experts-exchange.com/Programming/Languages/.NET/.NET_Framework_3.x/A_4362-Serialization-in-NET-1.html) we saw the basics of serialization and how types/objects can be serialized to Binary format. In this blog we wi…
Today I had a very interesting conundrum that had to get solved quickly. Needless to say, it wasn't resolved quickly because when we needed it we were very rushed, but as soon as the conference call was over and I took a step back I saw the correct …
This video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.

856 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question