I think this is easy but I am trying to figure out the best way to do this. I don't want to use a contains because that may find a partial string in another string and still be valid.
I have a string that has a comma delimter in it for example:
string mystring = "group1, group4, group1"
I only want the distinct values in the string so:
string mystringdis = "group1, group4".
What is the best way to handle this? I would prefer to use a LINQ statement if there is a way to do it with LINQ.