Hello I have to remove the Duplicate values from the array Or list how to do that
I have {“value1”,“value2”,“value1”,“value4”}
How to remove duplicates values from it
USE LINQ or some other way you know please give me a solution
I use this one From s in ListOf_String Select s distinct
But I couldn’t Understand what is this can anyone explain
What about Union we can use this? instead of where
Union method produces the set union of two sequences. I don’t think it’s suitable for this case.
arrString.Count(function(y) y=x)=1)
This means, if number of the items (each item) is 1, it returns true, if not 1 returns false. As a result, we can filter duplicated items using Where method.