Tip Of the Day - Remove Duplicate Items from a List(Of T) (or a List of whatever the hell you want)

If you need to remove duplicates from a from a collection that implements IEnumerable without iterating through or overriding the .equals method you can do the following:

Dim Cars As New List(Of String)(New String() {"Blue", "Red", "Yellow", "Red", "Black", "Blue"})Cars = Cars.Distinct().ToList()

Your list can be of anything you want. Strings, objects etc.. you can just for duplicates with the Distinct().ToList() method.

SQL 2008 Enabling Change Data Capture Made Easy

Want to Pass In a UserControl into your Class? Yes it’s possible.