I have two arrays:
var list1 = string[] {"1", "2", "3", "4", "", ""}; var list2 = string[] {"2", "3", "4","",""};
When I try to get common elements from these two arrays using the following code
var listCommon = list1.Intersect(list2);
It gives me a result like this
string[] {"2", "3", "4", ""}
But I want him to return like this:
string[] {"2", "3", "4", "", ""}
This value shields the last value of the empty string at the intersection.
source share