예제 #1
0
        public override int GetHashCode()
        {
            int hash = Hashing.CombinedHash(ItemType.GetHashCode(), Size);

            hash = Hashing.CombineHash(hash, Dimensions.Length);
            for (int i = 0; i < Dimensions.Length; i++)
            {
                hash = Hashing.CombineHash(hash, Dimensions[i].GetHashCode());
            }
            return(hash);
        }
예제 #2
0
 public override int GetHashCode()
 {
     return(Hashing.CombinedHash(RawKind.GetHashCode(), Contiguous, Min, Count));
 }
예제 #3
0
 /// <summary>
 /// Retrieves the hash code.
 /// </summary>
 /// <returns>An integer representing the hash code.</returns>
 public override int GetHashCode()
 {
     return(Hashing.CombinedHash(RawType.GetHashCode(), Count));
 }