// set difference private DataTableLocal Minus(DataTableLocal other) { if (!this.Heading.Equals(other.Heading)) { throw new EvaluatorException("tables have different headings"); } var newtable = DataTableLocal.Create(this.Heading); foreach (var row in this.GetRows()) //TODO:Enumerable { if (!other.Contains(row)) { newtable.AddRow(row); } } Logger.WriteLine(4, "[Minus={0}]", newtable); return(newtable); }