I am having two lists
List<int> a = {1,2,3};
List<int> b = {3,4};
I need to compare them in such a way that the output should be
1 false
2 false
4 true
The output is by using the following logic
1,2
are ina
but not inb
so they are set tofalse
whereas3
is in both the lists so its not in the output and- '4' is in
b
but not ina
so they are set totrue
the return type is a List<modelClass>
that has int id, bool isTrue
properties
Can you help me?
See Question&Answers more detail:os