예제 #1
0
        public override int GetHashCode()
        {
            int hash = schema.GetHashCode();

            if (list != null)
            {
                hash ^= HashHelper.GetHashCode(list.Take(8));
                hash ^= list.Count + 1;
            }
            return(hash);
        }
예제 #2
0
 public override int GetHashCode()
 {
     if (this.IsNull)
     {
         return(schema.GetHashCode());
     }
     else
     {
         return(HashHelper.GetHashCode(this.Schema.Fields.Select(f => this.GetField(f.Index))));
     }
 }