There is a disjunction operation, i.e. associations. I want to take only two unique values from two lists, but it’s not quite clear how to do this. Looked Except
, Intersect
is not that.
Here, for clarity
List<string> lst1 = new List<string>(){"1","2","3"}; List<string> lst2 = new List<string>(){"1","2","4"}; //var lstRez = {"3","4"}; Вот что должно получиться в итоге, т.е. символ 4 здесь уникален в обоих списках
Here is the merge operation graphically.
1, 2, 3, 4
. In the attached picture is not a union, but a symmetric difference. When performing a symmetric difference operation, the result will be3, 4
on your example, not only 4 is unique, but also 3. - iksuy