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); + } */ }
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); } */ }