public override bool Equals(UxmlTypeRestriction other) { UxmlValueMatches uxmlValueMatches = other as UxmlValueMatches; bool flag = uxmlValueMatches == null; return(!flag && this.regex == uxmlValueMatches.regex); }
/// <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); }