public override int GetHashCode() { unchecked { var hashCode = (Pattern != null ? Pattern.GetHashCode() : 0); hashCode = (hashCode * 397) ^ Ambient.GetHashCode(); hashCode = (hashCode * 397) ^ Diffuse.GetHashCode(); hashCode = (hashCode * 397) ^ Specular.GetHashCode(); hashCode = (hashCode * 397) ^ Reflective.GetHashCode(); hashCode = (hashCode * 397) ^ Shininess; return(hashCode); } }
public override int GetHashCode() { return (Color.GetHashCode() ^ Ambient.GetHashCode() ^ Diffuse.GetHashCode() ^ Specular.GetHashCode() ^ Shininess.GetHashCode() ^ Pattern.GetHashCode() ^ Reflective.GetHashCode() ^ Transparency.GetHashCode() ^ RefractiveIndex.GetHashCode()); }
public override int GetHashCode() { var hashCode = 412502415; hashCode = hashCode * -1521134295 + EqualityComparer <Pattern> .Default.GetHashCode(pattern); hashCode = hashCode * -1521134295 + EqualityComparer <Color> .Default.GetHashCode(color); hashCode = hashCode * -1521134295 + ambient.GetHashCode(); hashCode = hashCode * -1521134295 + diffuse.GetHashCode(); hashCode = hashCode * -1521134295 + specular.GetHashCode(); hashCode = hashCode * -1521134295 + shinniness.GetHashCode(); hashCode = hashCode * -1521134295 + reflective.GetHashCode(); hashCode = hashCode * -1521134295 + refractiveIndex.GetHashCode(); hashCode = hashCode * -1521134295 + transparency.GetHashCode(); hashCode = hashCode * -1521134295 + Ambient.GetHashCode(); hashCode = hashCode * -1521134295 + Diffuse.GetHashCode(); hashCode = hashCode * -1521134295 + Specular.GetHashCode(); hashCode = hashCode * -1521134295 + Shinniness.GetHashCode(); hashCode = hashCode * -1521134295 + Reflective.GetHashCode(); hashCode = hashCode * -1521134295 + RefracIndex.GetHashCode(); hashCode = hashCode * -1521134295 + Transparency.GetHashCode(); return(hashCode); }