Solved

Help Converting Lambda to VB.net

Posted on 2014-02-21
2
256 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Business Impact of IT Communications

What are the business impacts of how well businesses communicate during an IT incident? Targeting, speed, and transparency all matter. Find out more in this infographic.

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…
This article describes relatively difficult and non-obvious issues that are likely to arise when creating COM class in Visual Studio and deploying it by professional MSI-authoring tools. It is assumed that the reader is already familiar with the cla…
Michael from AdRem Software explains how to view the most utilized and worst performing nodes in your network, by accessing the Top Charts view in NetCrunch network monitor (https://www.adremsoft.com/). Top Charts is a view in which you can set seve…
In this brief tutorial Pawel from AdRem Software explains how you can quickly find out which services are running on your network, or what are the IP addresses of servers responsible for each service. Software used is freeware NetCrunch Tools (https…

726 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