Example #1
0
        public virtual int CompareTo(IMethod value)
        {
            int cmp;

            cmp = base.CompareTo((IDecoration)value);

            if (cmp != 0)
            {
                return(cmp);
            }

            if (FullyQualifiedName != null)
            {
                cmp = FullyQualifiedName.CompareTo(value.FullyQualifiedName);
                if (cmp != 0)
                {
                    return(cmp);
                }
            }

            cmp = this.TypeParameters.Count - value.TypeParameters.Count;
            if (cmp != 0)
            {
                return(cmp);
            }

            return(DiffUtility.Compare(Parameters, value.Parameters));
        }
Example #2
0
        public virtual int CompareTo(IProperty value)
        {
            int cmp;

            if (FullyQualifiedName != null)
            {
                cmp = FullyQualifiedName.CompareTo(value.FullyQualifiedName);
                if (cmp != 0)
                {
                    return(cmp);
                }
            }

            return(DiffUtility.Compare(Parameters, value.Parameters));
        }
Example #3
0
        public virtual int CompareTo(IField field)
        {
            int cmp;

            cmp = base.CompareTo((IEntity)field);
            if (cmp != 0)
            {
                return(cmp);
            }

            if (FullyQualifiedName != null)
            {
                return(FullyQualifiedName.CompareTo(field.FullyQualifiedName));
            }
            return(0);
        }
Example #4
0
        public virtual int CompareTo(IEvent value)
        {
            int cmp;

            if (0 != (cmp = base.CompareTo((IEntity)value)))
            {
                return(cmp);
            }

            if (FullyQualifiedName != null)
            {
                return(FullyQualifiedName.CompareTo(value.FullyQualifiedName));
            }

            return(0);
        }
Example #5
0
        public virtual int CompareTo(IClass value)
        {
            int cmp;

            if (0 != (cmp = base.CompareTo((IDecoration)value)))
            {
                return(cmp);
            }

            if (FullyQualifiedName != null)
            {
                cmp = FullyQualifiedName.CompareTo(value.FullyQualifiedName);
                if (cmp != 0)
                {
                    return(cmp);
                }
                return(this.TypeParameters.Count - value.TypeParameters.Count);
            }
            return(-1);
        }