Free VB.NET Code Snippets, Source Code, Articles, Examples, Tutorials and Programming Help

Archive for September, 2009

How to remove duplicates from Generic List (Of String)

I will show you a two ways how to clean up generic list of dupes.
Say that you have a list of Baby names like following:

Dim MyList As New List(Of String)
MyList.Add(”Simon”)
MyList.Add(”Denholm”)
MyList.Add(”Denis”)
[...]