public override int GetHashCode() { unchecked { var hashcode = 23; hashcode += hashcode * 31 + DataFreshness.GetHashCode(); if (TableTypes != null && TableTypes.Any()) { TableTypes.Distinct().ForEach(x => { hashcode += hashcode * 31 + x.GetHashCode(); }); } return(hashcode); } }
public override string ToString() { return(string.Format("{0},{1}", DataFreshness, TableTypes != null ? string.Join(",", TableTypes.Distinct()) : string.Empty)); }