Determine Duplicates via LINQ

jsurpless

Well-known member
Joined
Jul 29, 2008
Messages
144
Programming Experience
Beginner
Hi everyone

I've got a simple two-column datatable that I want to check for duplicate entries in a given column... looking around on MSDN, I found a bit of stuff but I seem to be doing something a bit wrong...

VB.NET:
Dim MatchMakerXML_Query = From Match In MatchMakerXML_Dataset.Tables("COMPONENT_MATCH").AsEnumerable() _
Group Match By Attribute_Name = Match.Field(Of String)("AUTOCAD") Into Match_Group = Group _
Select New With {Match.Field(Of String)("AUTOCAD") = strAttributeName}

Any thoughts?

Many thanks!
 
Back
Top