Exemplo n.º 1
0
 /// <summary>
 /// Returns a hash code for this instance.
 /// </summary>
 /// <returns>
 /// A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table.
 /// </returns>
 public override int GetHashCode()
 {
     return(Min.GetHashCode() ^
            Q1.GetHashCode() ^
            Median.GetHashCode() ^
            Mean.GetHashCode() ^
            Q3.GetHashCode() ^
            Max.GetHashCode() ^
            StdDev.GetHashCode() ^
            N.GetHashCode());
 }
Exemplo n.º 2
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (Q1 != 0)
            {
                hash ^= Q1.GetHashCode();
            }
            if (Q2 != 0)
            {
                hash ^= Q2.GetHashCode();
            }
            return(hash);
        }
Exemplo n.º 3
0
 /// <summary>
 /// Returns a hash code for this instance.
 /// </summary>
 /// <returns>
 /// A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table.
 /// </returns>
 public override int GetHashCode()
 {
     return(Q0.GetHashCode() ^ Q1.GetHashCode() ^ Q2.GetHashCode() ^ Q3.GetHashCode());
 }
Exemplo n.º 4
0
 protected override int HashCode()
 {
     return(Key.GetHashCode() ^ ArtikleCode.GetHashCode() ^ ColorCode.GetHashCode() ^ Description.GetHashCode() ^
            Price.GetHashCode() ^ DiscountPrice.GetHashCode() ^ DeliveredIn.GetHashCode() ^ Q1.GetHashCode() ^ Size.GetHashCode() ^ Color.GetHashCode());
 }