I have the following c# linq query:
var duplicatedSSN =
from p in persons
group p by p.SSN into g
where g.Count() > 1
select g.Key;
Can anyone help me convert this to a vb.net linq query?
Many Thanks!
I have the following c# linq query:
var duplicatedSSN =
from p in persons
group p by p.SSN into g
where g.Count() > 1
select g.Key;
Can anyone help me convert this to a vb.net linq query?
Many Thanks!
Try this
Dim duplicateSSN = From p in persons _
Group By Key=p.SSN _
Into g = Group _
Where g.Count() > 1 _
Select Key