Hi, well the easiest way that comes to my mind is to do it with a LINQ like this:
int[] nonMatching = n.Except(m).Union(m.Except(n)).ToArray();
In short the
n.Except(m)
returns
n array's items that are not found in
m array,
m.Except(n)
does the vice versa and the
Union
will combine those two into a single collection.
Another way would be to just use a nested foreach and check each
n array's item with each
m array's item.