示例#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
 public MethodInfo GetMethod(string name, Type[] parameters)
 {
     return(GenericsReflection.GetMethod(this, name, BindFlags.PublicMembers, parameters));
 }
示例#3
0
 public MethodInfo GetMethod(string name)
 {
     return(GenericsReflection.GetMethod(this, name, BindFlags.PublicMembers, null));
 }