コード例 #1
0
        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);
            }
        }
コード例 #2
0
 public override string ToString()
 {
     return(string.Format("{0},{1}", DataFreshness, TableTypes != null ? string.Join(",", TableTypes.Distinct()) : string.Empty));
 }