private UserdataMethod GetMethod(string name) {
			InitializeMethods();
            foreach (var method in m_Methods) {
                if (method.Name.Equals(name)) {
                    UserdataMethod userdataMethod = new ReflectUserdataMethod(m_Script, m_Type, name, m_Methods);
                    m_Functions.Add(name, userdataMethod);
                    return userdataMethod;
                }
            }
            return null;
        }
示例#2
0
 private UserdataMethod GetMethod(string name)
 {
     InitializeMethods();
     for (int i = 0; i < m_Methods.Length; ++i)
     {
         if (m_Methods[i].Name.Equals(name))
         {
             UserdataMethod method = new ReflectUserdataMethod(m_Script, m_Type, name, m_Methods);
             m_Functions.Add(name, method);
             return(method);
         }
     }
     return(null);
 }
示例#3
0
 private UserdataMethod GetMethod(string name)
 {
     InitializeMethods();
     foreach (var method in m_Methods)
     {
         if (method.Name.Equals(name))
         {
             ReflectUserdataMethod ret = new ReflectUserdataMethod(m_Script, m_Type, name, m_Methods);
             m_Functions.Add(name, ret);
             return(ret);
         }
     }
     return(null);
 }
 private UserdataMethod GetMethod(string name)
 {
     this.InitializeMethods();
     foreach (MethodInfo info in this.m_Methods)
     {
         if (info.Name.Equals(name))
         {
             ReflectUserdataMethod method = new ReflectUserdataMethod(base.m_Script, base.m_Type, name, this.m_Methods);
             this.m_Functions.Add(name, method);
             return(method);
         }
     }
     return(null);
 }