Solved

Help Converting Lambda to VB.net

Posted on 2014-02-21
2
252 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 69

Expert Comment

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

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

It seems a simple enough task, yet I see repeated questions asking how to do it: how to pass data between two forms. In this article, I will show you the different mechanisms available for you to do just that. This article is directed towards the .N…
In my previous two articles we discussed Binary Serialization (http://www.experts-exchange.com/A_4362.html) and XML Serialization (http://www.experts-exchange.com/A_4425.html). In this article we will try to know more about SOAP (Simple Object Acces…
This Micro Tutorial will give you a basic overview how to record your screen with Microsoft Expression Encoder. This program is still free and open for the public to download. This will be demonstrated using Microsoft Expression Encoder 4.
This tutorial gives a high-level tour of the interface of Marketo (a marketing automation tool to help businesses track and engage prospective customers and drive them to purchase). You will see the main areas including Marketing Activities, Design …

863 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now