Fan.Sys.Type.method C# (CSharp) Method

method() public method

public method ( string name ) : Method
name string
return Method
        public Method method(string name)
        {
            return (Method)slot(name, true);
        }

Same methods

Type::method ( string name, bool check ) : Method

Usage Example

Ejemplo n.º 1
0
        int executeType(string target)
        {
            if (target.IndexOf("::") < 0)
            {
                target += "::Main.main";
            }
            else if (target.IndexOf('.') < 0)
            {
                target += ".main";
            }

            try
            {
                int    dot  = target.IndexOf('.');
                Type   type = Type.find(target.Substring(0, dot), true);
                Method main = type.method(target.Substring(dot + 1), true);
                return(callMain(type, main));
            }
            catch (Exception e)
            {
                if (e is Err.Val)
                {
                    ((Err.Val)e).err().trace();
                }
                else
                {
                    Err.dumpStack(e);
                }
                return(-1);
            }
        }
All Usage Examples Of Fan.Sys.Type::method