示例#1
0
        public bool IsNewerThan(AddonObject other)
        {
            if (semversion == null)
            {
                InitSemver();
            }
            if (other.semversion == null)
            {
                other.InitSemver();
            }

            if (semversion.CompareTo(other.semversion) < 1)
            {
                return(false);
            }

            return(true);
        }
示例#2
0
        public bool IsSameAs(AddonObject other)
        {
            if (semversion == null)
            {
                InitSemver();
            }
            if (other.semversion == null)
            {
                other.InitSemver();
            }

            if (semversion.CompareTo(other.semversion) != 0)
            {
                return(false);
            }

            return(true);
        }