public Lots <T> Intersection(Lots <T> item) { Lots <T> ts = new Lots <T>(); foreach (var i in item.list) { if (Contains(i)) { ts.Add(i); } } return(ts); }
public Lots <T> Union(Lots <T> item) { Lots <T> ts = new Lots <T>(list); foreach (var i in item.list) { if (!Contains(i)) { ts.Add(i); } } return(ts); }