@Diego Alvarez I provided you with two snippets, see the urls to DotNetFiddle, the second one contains the comparer created by you and I see it works properly.
If it doesn't work for you please share more code, explain the way of how did you check the solution and I hope I will help you to get the code working on your side.
Get intersection of 2 string arrays
Diego Alvarez
101
Reputation points
Hello. I try to get the intersection of 2 string arrays using an implementation of IEqualityComparer. But for some reason the Equals method is not executed. I put a breakpoint but the execution doesn't stop there. Do you know the reason? Thank you. I attach the code.
8 answers
Sort by: Most helpful
-
Andriy Bezkorovayny 6 Reputation points
2022-04-24T11:39:11.377+00:00 -
Diego Alvarez 101 Reputation points
2022-04-24T13:29:52.813+00:00 andriyb, there is no more related code.
-
Diego Alvarez 101 Reputation points
2022-05-04T12:43:18.51+00:00 Thank you but I did the method manually and it works for me.