I have list of int A,B. i like to do the following step in linq
list c = new List(); for (int i = 0; i < a.count; i++) { for (i
Produce a list c containing all elements that are present in both lists a and b:
c
a
b
List c = a.Intersect(b).ToList();