示例#1
0
    public EventCall GetFunc(string funcName, object[] parameters)
    {
        // 解析方法
        EventCallType method = poolType.Get(funcName);

        if (method == null)
        {
            return(null);
        }

        return(new EventCall(method, parameters));
    }
示例#2
0
    protected virtual EventCall ParseFunc(string funcName, Queue <string> stringQueue)
    {
        // 解析方法
        EventCallType method = poolType.Get(funcName);

        if (method == null)
        {
            return(null);
        }

        // 解析参数
        string word = stringQueue.Dequeue();

        if (word != "(")
        {
            return(null);
        }
        List <object> parameters = ParseParams(stringQueue, ')');

        return(new EventCall(method, parameters.ToArray()));
    }
 public EventCall(EventCallType method, object[] parameters)
 {
     this.method     = method;
     this.parameters = parameters;
     NextCall        = null;
 }