Esempio n. 1
0
 public MethodInfo GetMethod(string methodName, BindingFlags bindingFlags, Type[] parameterTypes)
 {
     return(WalkAndFindSingle(t => SmartBinder.SelectBestMethod(t.GetTypeInfo().GetDeclaredMethods(methodName), parameterTypes, bindingFlags)));
 }
Esempio n. 2
0
 public PropertyInfo GetIndexer(Type[] types)
 {
     return(WalkAndFindSingle(t => t.GetTypeInfo().DeclaredProperties.FirstOrDefault(pi => pi.Name == "Item" && SmartBinder.MatchParameters(types, pi.GetIndexParameters()))));
 }