public override bool Equals(object obj) { var TBL = obj as Table; if (TBL == null) { return(!(add = true)); } foreach (Column COL in Columns.Values) { if (!COL.Equals(TBL.Columns[COL.Name])) { mod = true; } } return(Name == TBL.Name && Columns.Count == TBL.Columns.Count && !mod); }