예제 #1
0
        public static MethodInfo GetDeclaredMethod(this Type type, string name, Type[] parameters)
        {
            if (type == null)
            {
                throw new ArgumentNullException("type");
            }

            return(GenericsReflection.GetMethod(type, name, Type.BindFlags.DeclaredMembers, parameters));
        }
예제 #2
0
파일: Type.cs 프로젝트: luozhiping1987/api
 public MethodInfo GetMethod(string name, Type[] parameters)
 {
     return(GenericsReflection.GetMethod(this, name, BindFlags.PublicMembers, parameters));
 }
예제 #3
0
파일: Type.cs 프로젝트: luozhiping1987/api
 public MethodInfo GetMethod(string name)
 {
     return(GenericsReflection.GetMethod(this, name, BindFlags.PublicMembers, null));
 }