예제 #1
0
        protected void addMethod(string name, MethodInfo mi, NOEX noex)
        {
            if (!mi.IsStatic)
            {
                m_tbl[name] = new RBuiltinMethod(ruby, mi);
            }

            /*
             * Console.WriteLine("adding " + mi.DeclaringType.Name + "." + mi.Name + " static=" + mi.IsStatic.ToString()
             + " ret=" + mi.ReturnType.Name);
             +
             + foreach(ParameterInfo pi in mi.GetParameters()) {
             +  Console.WriteLine("param " + pi.ParameterType.Name + " " + pi.Name);
             + }
             */
        }
예제 #2
0
파일: Class.cs 프로젝트: emtees/old-code
 protected void addMethod(string name, MethodInfo mi, NOEX noex)
 {
     if(!mi.IsStatic) {
         m_tbl[name] = new RBuiltinMethod(ruby, mi);
     }
     /*
     Console.WriteLine("adding " + mi.DeclaringType.Name + "." + mi.Name + " static=" + mi.IsStatic.ToString()
             + " ret=" + mi.ReturnType.Name);
     
     foreach(ParameterInfo pi in mi.GetParameters()) {
         Console.WriteLine("param " + pi.ParameterType.Name + " " + pi.Name); 
     }
     */
 }