Algebra.QL.Form.Type.BaseType.GetLeastUpperBound C# (CSharp) Метод

GetLeastUpperBound() публичный Метод

public GetLeastUpperBound ( IFormType other ) : IFormType
other IFormType
Результат IFormType
        public IFormType GetLeastUpperBound(IFormType other)
        {
            if (Equals(other) || other.IsChildOf(this))
            {
                return this;
            }
            else if (IsChildOf(other))
            {
                return other;
            }

            Debug.Assert(SuperType != null, "SuperType is null!");

            return SuperType.GetLeastUpperBound(other);
        }