I have the following code:
List test1 = new List { \"@bob.com\", \"@tom.com\" }; List test2 = new List
var output = emails.Where(e => domains.All(d => !e.EndsWith(d)));
Or if you prefer:
var output = emails.Where(e => !domains.Any(d => e.EndsWith(d)));