Possible Duplicate:
Getting the “diff” between two arrays in C#?
Is there a better way to get the difference of two arrays?
var a = new int[] { 1, 2, 3 };
var b = new int[] { 2, 3, 4 };
foreach (var d in a.Except(b).Union(b.Except(a)))
Console.WriteLine(d); // 1 4