private static MemberAssignment BindCustomProjectionExpression(PropertyMap propertyMap, TypeMap propertyTypeMap, ExpressionResolutionResult result) { var visitor = new ParameterReplacementVisitor(result.ResolutionExpression); var replaced = visitor.Visit(propertyTypeMap.CustomProjection.Body); return Expression.Bind(propertyMap.DestinationProperty.MemberInfo, replaced); }
private static MemberAssignment BindCustomProjectionExpression(PropertyMap propertyMap, TypeMap propertyTypeMap, ExpressionResolutionResult result) { var visitor = new ParameterReplacementVisitor(result.ResolutionExpression); var replaced = visitor.Visit(propertyTypeMap.CustomProjection.Body); return(Expression.Bind(propertyMap.DestinationProperty.MemberInfo, replaced)); }