count number of identical elements in two arrays in linq
arrays, c#, linq
Solution
The shortest would probably be this:
A1.Intersect(A2).Count()
Problem
I have 2 string arrays: ``` A1: {"aa","bb","cc","dd","ee"} A2: {"cc","dd,"ee","bla","blu"} ``` how do I count the number of identical elements between `A1` and `A2` (in this case 3)?