Example #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);
        }
Example #2
0
        public override int GetHashCode()
        {
            int hash  = Hashing.CombinedHash(_itemType.GetHashCode(), _size);
            int count = Utils.Size(_dims);

            hash = Hashing.CombineHash(hash, count.GetHashCode());
            for (int i = 0; i < count; i++)
            {
                hash = Hashing.CombineHash(hash, _dims[i].GetHashCode());
            }
            return(hash);
        }
Example #3
0
 public override int GetHashCode()
 {
     return(Hashing.CombinedHash(Name.GetHashCode(), Signature.GetHashCode()));
 }
Example #4
0
 public override int GetHashCode()
 {
     return(Hashing.CombinedHash(0, typeof(StringParameterValue), _name, _value));
 }
Example #5
0
 public override int GetHashCode()
 {
     return(Hashing.CombinedHash(RawKind.GetHashCode(), Contiguous, Min, Count));
 }