Exemple #1
0
        /// <summary>
        /// Returns the hash code for this instance.
        /// </summary>
        /// <returns>The hash code.</returns>
        public override int GetHashCode()
        {
            int hash = this.X.GetHashCode();

            hash = HashCodeHelper.CombineHashCodes(hash, this.Y.GetHashCode());
            return(hash);
        }
        public override int GetHashCode()
        {
            int h = this.X.GetHashCode();

            h = HashCodeHelper.CombineHashCodes(h, this.Y.GetHashCode());
            h = HashCodeHelper.CombineHashCodes(h, this.Z.GetHashCode());
            return(HashCodeHelper.CombineHashCodes(h, this.W.GetHashCode()));
        }
Exemple #3
0
 public override int GetHashCode()
 {
     return(HashCodeHelper.CombineHashCodes(HashCodeHelper.CombineHashCodes(this.X.GetHashCode(), this.Y.GetHashCode()), this.Z.GetHashCode()));
 }