예제 #1
0
 public static ConstructorInfo GetConstructor(this Type type, BindingFlags bindingFlags, object placeholder1, IList <Type> parameterTypes, object placeholder2)
 {
     return(MethodBinder.SelectMethod(type.GetConstructors(bindingFlags), parameterTypes));
 }
예제 #2
0
 public static MethodInfo GetMethod(this Type type, string name, BindingFlags bindingFlags, object placeHolder1, IList <Type> parameterTypes, object placeHolder2)
 {
     return(MethodBinder.SelectMethod(type.GetTypeInfo().DeclaredMethods.Where(m => (name == null || m.Name == name) && TestAccessibility(m, bindingFlags)), parameterTypes));
 }