public void MapFrom <TSourceMember>(Expression <Func <TSource, TSourceMember> > sourceMember)
 {
     PathMapActions.Add(pm =>
     {
         pm.SourceExpression = sourceMember;
     });
 }
 public void MapFromUntyped(LambdaExpression sourceMember)
 {
     PathMapActions.Add(pm =>
     {
         pm.SourceExpression = sourceMember;
     });
 }
 public void MapFromUntyped(LambdaExpression sourceExpression)
 {
     _sourceExpression = sourceExpression;
     PathMapActions.Add(pm =>
     {
         pm.SourceExpression = sourceExpression;
     });
 }
 public void Condition(Func <ConditionParameters <TSource, TDestination, TMember>, bool> condition) =>
 PathMapActions.Add(pm =>
 {
     Expression <Func <TSource, TDestination, TMember, TMember, ResolutionContext, bool> > expr =
         (src, dest, srcMember, destMember, ctxt) =>
         condition(new ConditionParameters <TSource, TDestination, TMember>(src, dest, srcMember, destMember, ctxt));
     pm.Condition = expr;
 });
 public void MapFromUntyped(LambdaExpression sourceExpression)
 {
     _sourceExpression = sourceExpression ?? throw new ArgumentNullException(nameof(sourceExpression), $"{nameof(sourceExpression)} may not be null when mapping {DestinationMember.Name} from {typeof(TSource)} to {typeof(TDestination)}.");
     PathMapActions.Add(pm =>
     {
         pm.CustomMapExpression = sourceExpression;
         pm.Ignored             = false;
     });
 }
 public void MapFromUntyped(LambdaExpression sourceExpression)
 {
     _sourceExpression = sourceExpression;
     PathMapActions.Add(pm =>
     {
         pm.CustomMapExpression = sourceExpression;
         pm.Ignored             = false;
     });
 }
 public void Ignore()
 {
     PathMapActions.Add(pm => pm.Ignored = true);
 }