Exemple #1
0
        public override int GetHashCode()
        {
            if (Value == 0 || Value == int.MinValue || Value == int.MaxValue)
            {
                return(Hashing.Mix(Value));
            }

            return(Hashing.Combine(Value, (int)Unit));
        }
Exemple #2
0
 public int GetHashCode(uint obj)
 {
     return((int)Hashing.Mix(obj));
 }
Exemple #3
0
 public int GetHashCode(ulong obj)
 {
     return(Hashing.Mix((long)obj));
 }