In Java (I assume C# is more or less identical):
list = new ArrayList(new HashSet(list))
If you really wanted to mutate the original list:
List noDupes = new ArrayList(new HashSet(list));
list.clear();
list.addAll(noDupes);
To preserve order, simply replace HashSet with LinkedHashSet.