Imports System
Imports System.Linq
Imports System.Collections.Generic
Public Class Program
Public Shared Sub Main()
Dim list As List(Of Integer) = New List(Of Integer) From {
3,
5,
2,
1,
3,
3,
2,
8,
9,
5
}
Dim unique As List(Of Integer) = list.Distinct().ToList()
Console.WriteLine(String.Join(", ", unique))
End Sub
End Class
' run:
'
' 3, 5, 2, 1, 8, 9
'