Exemple #1
0
        /// <summary>
        /// Returns a hash code based on the object's fields.
        /// </summary>
        /// <returns>A hash code for the current object</returns>
        public override int GetHashCode()
        {
            var hashCode = -2139604081;

            hashCode = hashCode * -1521134295 + materialFace.GetHashCode();
            hashCode = hashCode * -1521134295 + polygonMode.GetHashCode();
            return(hashCode);
        }
Exemple #2
0
 public override int GetHashCode()
 {
     unchecked
     {
         int hash = 17;
         hash = hash * 23 + PolygonMode.GetHashCode();
         return(hash);
     }
 }