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));
        }
        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);
        }
        public override bool Equals(UxmlTypeRestriction other)
        {
            UxmlValueMatches otherVM = other as UxmlValueMatches;

            if (otherVM == null)
            {
                return(false);
            }

            return(regex == otherVM.regex);
        }