1

I have the following C# LINQ query expression:

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 VB.NET?

1 Answer 1

3

Try this

Dim duplicateSSN = From p in persons _
                   Group By Key=p.SSN _
                   Into g = Group _
                   Where g.Count() > 1 _
                   Select Key
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.