Example #1
0
 public MethodInfo GetMethod(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) && XMethods.Api.TestAccessibility(m, bindingFlags)), parameterTypes));
 }
Example #2
0
 public ConstructorInfo GetConstructor(Type type, BindingFlags bindingFlags, object placeholder1, IList <Type> parameterTypes, object placeholder2)
 {
     return(MethodBinder.SelectMethod(type.GetConstructors(bindingFlags), parameterTypes));
 }