Kevin Pirnie' Articles
- Home / Kevin Pirnie’s Articles / array sort
By: Kevin On: June 30, 2011
Posted In: .Net Development Software Source Code array sort asp.net development vb.net web development
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() Read More