public MappingContextInfo(SwapArgs swapArgs, Expression contextAccess) : this( swapArgs, contextAccess, GetValueAccess(swapArgs.GetSourceAccess(contextAccess), swapArgs.ContextTypes[0]), GetValueAccess(swapArgs.GetTargetAccess(contextAccess), swapArgs.ContextTypes[1])) { }
public MappingContextInfo(SwapArgs swapArgs, Expression contextAccess) { _swapArgs = swapArgs; CreatedObject = GetCreatedObject(swapArgs); SourceAccess = GetValueAccess(swapArgs.GetSourceAccess(contextAccess), ContextTypes[0]); TargetAccess = GetValueAccess(swapArgs.GetTargetAccess(contextAccess), ContextTypes[1]); MappingDataAccess = swapArgs.GetTypedContextAccess(contextAccess); }