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); }
public override bool Equals(UxmlTypeRestriction other) { UxmlValueMatches uxmlValueMatches = other as UxmlValueMatches; bool flag = uxmlValueMatches == null; return(!flag && this.regex == uxmlValueMatches.regex); }
public override bool Equals(UxmlTypeRestriction other) { UxmlEnumeration uxmlEnumeration = other as UxmlEnumeration; bool flag = uxmlEnumeration == null; return(!flag && this.values.All(new Func <string, bool>(uxmlEnumeration.values.Contains <string>)) && this.values.Count <string>() == uxmlEnumeration.values.Count <string>()); }
/// <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)); }
/// <summary> /// Indicates whether the current <see cref="UxmlValueMatches"/> 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) { UxmlValueMatches otherVM = other as UxmlValueMatches; if (otherVM == null) { return(false); } return(regex == otherVM.regex); }
/// <summary> /// Indicates whether the current <see cref="UxmlEnumeration"/> 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) { UxmlEnumeration otherE = other as UxmlEnumeration; if (otherE == null) { return(false); } return(values.All(otherE.values.Contains) && values.Count() == otherE.values.Count()); }
protected UxmlAttributeDescription() { this.use = UxmlAttributeDescription.Use.Optional; this.restriction = null; }