views:

142

answers:

1

Possible Duplicate:
Disjoint Union in LINQ

DUPE: http://stackoverflow.com/questions/801757/disjoint-union-in-linq

I know this is a simple collection operation,My code is:

var gone = from a in A
     where B.Contains(a) == false
     select a;

but it not work.

+2  A: 
var gone = A.Except(B);
LukeH