Exemple #1
0
 /// <summary>
 ///     Execute a mapping from the source object to the existing target object.
 /// </summary>
 /// <typeparam name="TSource">The type of source object.</typeparam>
 /// <typeparam name="TTarget">The type of target object.</typeparam>
 /// <param name="source">Source object to map from.</param>
 /// <param name="target">Target object to map into.</param>
 public void Map <TSource, TTarget>(TSource source, TTarget target)
 {
     ExecutorFactory <TSource, TTarget> .GetMapper(this)(source, target);
 }
Exemple #2
0
 /// <summary>
 ///     Execute a mapping from the source object to a new target object.
 /// </summary>
 /// <typeparam name="TSource">The type of source object.</typeparam>
 /// <typeparam name="TTarget">The type of target object.</typeparam>
 /// <param name="source">Source object to map from.</param>
 /// <returns>Mapped target object.</returns>
 public TTarget Map <TSource, TTarget>(TSource source)
 {
     return(ExecutorFactory <TSource, TTarget> .GetConverter(this)(source));
 }