コード例 #1
0
        protected virtual bool DoesImplement(CodeType type)
        {
            // Iterate through all extended classes.
            CodeType checkType = this;

            while (checkType != null)
            {
                if (type.Is(checkType) || (!checkType.IsConstant() && type is AnyType))
                {
                    return(true);
                }
                checkType = checkType.Extends;
            }

            return(false);
        }