If an element exist in a list, ignore other similar elements in c# I have got a string list with generated programmatically like this: