public static RequiredValuesSet GetValuesRequiredBy(LambdaExpression lambda) { var finder = new ParametersAccessFinder(lambda.Parameters); finder.Visit(lambda.Body); return(finder._requiredValues); }
public static IValueInjector Create(LambdaExpression lambda, MappingConfigInfo configInfo) { var requiredValues = ParametersAccessFinder.GetValuesRequiredBy(lambda); return(Create(lambda, configInfo, requiredValues)); }