/// <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 = 1286869374; hashCode = hashCode * -1521134295 + enabled.GetHashCode(); hashCode = hashCode * -1521134295 + depthMask.GetHashCode(); hashCode = hashCode * -1521134295 + depthFunction.GetHashCode(); return(hashCode); }
public override int GetHashCode() { unchecked { int hash = 17; hash = hash * 23 + Enabled.GetHashCode(); hash = hash * 23 + DepthFunction.GetHashCode(); return(hash); } }