Quick Way to Get Rid of Duplicates

Quick Way to Get Rid of Duplicates

Quick Way to Get Rid of Duplicates

What a great thing .Net 3.5+ is.  Thanks to the advent of Linq, we can now get rid of duplicated values from an array extremely easily without having to code your brains out.


Dim TmpArray() As String = New String() {"VW", "Audi", "BMW", "Chevy", "VW", "Audi"}

Dim Qry = (From n In TmpArray.Distinct Select n).ToList()

Categories


Let Us Help

Get You Online

Contact Us Today

Important Cookie Information
Our website uses cookies. By continuing to browse the site you are agreeing to our use of cookies. For more details about cookies and their use, please see our Cookie Policy.