I have some List that contain int value between 0 to 10
for example the list contain the values 3, 8 ,9, 10
Now, i want to use linq to create new list that will contain all the values that are not in the first list … that mean that the new list will contain the values 0,1,2,4,5,6,7
How to do it with linq ?
Thanks
It’s
11instead of10because that’s the count of numbers you wish to generate, and there are 11 numbers in 0-10 inclusive.