I have the following array:
new string[] { "A", "B", "C", "D", "A" }
What I want to do is to remove the duplicated values and the value that is duplicated. I expect this result:
new string[] { "B", "C", "D" }
Im trying doing this:
names.Distinct().ToArray();
But this only remove the duplicated value and leaves the original in the array.
How can I solve it?