Fan.Sys.Method.@params C# (CSharp) Method

@params() public method

public @params ( ) : List
return List
        public List @params()
        {
            return m_params.ro();
        }

Usage Example

Example #1
0
        public virtual object make(List args)
        {
            Method make = method("make", false);

            if (make != null && make.isPublic())
            {
                int  numArgs = args == null ? 0 : args.sz();
                List p       = make.@params();
                if ((numArgs == p.sz()) ||
                    (numArgs < p.sz() && ((Param)p.get(numArgs)).hasDefault()))
                {
                    return(make.m_func.callList(args));
                }
            }

            Slot defVal = slot("defVal", false);

            if (defVal is Field)
            {
                return(((Field)defVal).get(null));
            }
            if (defVal is Method)
            {
                return(((Method)defVal).m_func.callList(null));
            }

            throw Err.make("Type missing 'make' or 'defVal' slots: " + this).val;
        }
All Usage Examples Of Fan.Sys.Method::@params