hi all, I need to compare 2 string arrays and return the string that is not contained in another array, ie I need the excess.
I need something like this:
String1 = {a, b}
String2 = {a}
Result = b
thank you.
1 Like
Here’s a one-liner that can do that:
result = arr1.Except(arr2).Concat(arr2.Except(arr1)).ToArray
Here is the Stack Overflow thread where it was brought up.
9 Likes
2 Likes
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.