Read this article in your language IT | EN | DE | ES
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.
45448b1a-de77-422c-bf0d-bcc5847317d2|0|.0
Code Snippets, Tip of the Day, VB.NET
vb.net, tip of the day, code snippets