예제 #1
0
 private static MemberInfo GetSubstitution(IPredicateConverter converter, MemberInfo member)
 {
     return(converter.Substitutions.ContainsKey(member)
                                        ? converter.Substitutions[member]
                                        : GetDefaultMemberSubstitution(converter.TargetType, member));
 }
예제 #2
0
 private PredicateMapper(IPredicateConverter converter)
 {
     _converters = new List <IPredicateConverter> {
         converter
     };
 }
예제 #3
0
 private static MemberInfo GetSubstitution(IPredicateConverter converter, MethodInfo method)
 {
     return(converter.Substitutions.ContainsKey(method)
                                        ? converter.Substitutions[method]
                                        : GetDefaultMethodSubstitution(converter.SourceType, converter.TargetType, method));
 }