示例#1
0
        public static bool IsInheritedFrom(this TypeNode type, TypeNode from)
        {
            TypeNode baseClass;

            if (type.HasBaseClass(out baseClass))
            {
                if (baseClass == from || baseClass.IsInheritedFrom(from))
                {
                    return(true);
                }
            }

            return(false);
        }