Convert to VB .Net syntax.

K

Karthik

Hi,
Can any one help me to change the below code to VB .Net?

var(query = From row In dtInvoice.AsEnumerable())
group row by new { InvNo = row.Field< string >( "InvNo" ),
EmpUNID = row.Field< decimal >( "EmployeeUNID" )} into grp
OrderBy(grp.Key.InvNo)
select new
{
Key = grp.Key,
InvNo = grp.Key.InvNo,
EmpID = grp.Key.EmpUNID,
TotalCost = grp.Sum(r => r.Field< decimal >( "TotalCost" )),
TotalRev = grp.Sum(r => r.Field< decimal >( "TotalRev" ))
}

Thanks and regards,
Karthik.C
 
G

Gregory A. Beamer

Can any one help me to change the below code to VB .Net?

I don't personally have the time, but consider this my "teaching a man to
fish" good deed for the day.

Download Reflector from Red Gate (http://reflector.red-gate.com). Put the
code in a C# project and make sure everything referenced exists (the
datasets, entities, etc). Then compile and open the assembly in reflector.
Choose VB from the drop down and you have code in VB.

It is, honestly, one of my top 10 tools for .NET development. Perhaps #1
outside of Visual Studio. I wrote about it here:
http://snurl.com/taqbt

Peace and Grace,
Greg

--
Vote for Miranda's Christmas Story
http://tinyurl.com/mirandabelieve

Twitter: @gbworld
Blog: http://gregorybeamer.spaces.live.com

*******************************************
| Think outside the box! |
*******************************************
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top