In my application i have written a function that create the array of the codes from database. Just like that:
[code title=””]
codes[0] = “ERQ”
codes[0] = “RTQ”
codes[0] = “POQ”
codes[0] = “ERQ”
codes[0] = “POQ”
codes[0] = “TRQ”
[/code]
After that i need all values but in one case i need only distinct values.
This time i am creating the HashSet object to remove the duplicates values. Can i use the LINQ, of yes than what will be the linq query to remove duplicates?