Ejemplo n.º 1
0
 public void AttachMethod(string strMethod, OnHandlerMethod rMethod)
 {
     if (false == TableMethod.ContainsKey(strMethod))
     {
         TableMethod.Add(strMethod, rMethod);
     }
 }
Ejemplo n.º 2
0
 public void DetachMethod(string strMethod, OnHandlerMethod rMethod)
 {
     if (false == TableMethod.ContainsKey(strMethod))
     {
         TableMethod.Remove(strMethod);
     }
 }
Ejemplo n.º 3
0
        // 调用函数
        public virtual NValue Method(string strMethod, NValue[] rArrayValue)
        {
            OnHandlerMethod rMethod = null;

            if (TableMethod.TryGetValue(strMethod, out rMethod))
            {
                return(rMethod(rArrayValue));
            }

            return(NValue.True);
        }