Hi I have two list I want to get Unique record from first list that not match with other.
Example
List = [1,2,3,4,5,6,7]
List = [1,2,3,4,5,8]
According to my need output should be like this [6,7].
Please suggest me how it will be done?
IEnumerable<int> result = list1.Except(list2);
You can use Except
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With