public override bool Equals(UxmlTypeRestriction other) { UxmlValueBounds uxmlValueBounds = other as UxmlValueBounds; bool flag = uxmlValueBounds == null; return(!flag && (this.min == uxmlValueBounds.min && this.max == uxmlValueBounds.max && this.excludeMin == uxmlValueBounds.excludeMin) && this.excludeMax == uxmlValueBounds.excludeMax); }
/// <summary> /// Indicates whether the current <see cref="UxmlValueBounds"/> object is equal to another object of the same type. /// </summary> /// <param name="other">The object to compare with.</param> /// <returns>True if the otheer object is equal to this one.</returns> public override bool Equals(UxmlTypeRestriction other) { UxmlValueBounds otherVB = other as UxmlValueBounds; if (otherVB == null) { return(false); } return((min == otherVB.min) && (max == otherVB.max) && (excludeMin == otherVB.excludeMin) && (excludeMax == otherVB.excludeMax)); }