Skip to content

Commit

Permalink
cosmetic
Browse files Browse the repository at this point in the history
  • Loading branch information
lbargaoanu committed Jan 5, 2017
1 parent afb9b34 commit 8d18dc9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/AutoMapper/Execution/TypeMapPlanBuilder.cs
Original file line number Diff line number Diff line change
Expand Up @@ -454,7 +454,7 @@ private Expression BuildValueResolverFunc(PropertyMap propertyMap, Expression de

private Expression CreateInstance(Type type)
{
return Call(Property(_context, "Options"), typeof(IMappingOperationOptions).GetDeclaredMethod("CreateInstance").MakeGenericMethod(type));
return Call(Property(_context, "Options"), "CreateInstance", new[] { type });
}

private Expression BuildResolveCall(Expression destValueExpr, ValueResolverConfiguration valueResolverConfig)
Expand Down

0 comments on commit 8d18dc9

Please sign in to comment.