'How to Remove same key on C# List?

e.g) I want this list [1, 2, 5, 10, 1, 2, 4] to [1, 2, 5, 10, 4]
What kind of function should I use to remove same value(key) on list?
Please help me.
thanks.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source