Exemplo n.º 1
0
 public static void Map <TSource, TTarget>(TSource source, TTarget target)
     where TSource : class
     where TTarget : class
 {
     MapperInternal <TSource, TTarget> .Map(source, target);
 }
Exemplo n.º 2
0
 public static TTarget[] Map <TSource, TTarget>(TSource[] sourceList)
     where TSource : class
     where TTarget : class
 {
     return(MapperInternal <TSource, TTarget> .MapList(sourceList).ToArray());
 }
Exemplo n.º 3
0
 public static IEnumerable <TTarget> Map <TSource, TTarget>(IEnumerable <TSource> sourceList, Action <TSource, TTarget> otherSetup)
     where TSource : class
     where TTarget : class
 {
     return(MapperInternal <TSource, TTarget> .MapList(sourceList, otherSetup));
 }
Exemplo n.º 4
0
 public static List <TTarget> Map <TSource, TTarget>(List <TSource> sourceList)
     where TSource : class
     where TTarget : class
 {
     return(MapperInternal <TSource, TTarget> .MapList(sourceList).ToList());
 }
Exemplo n.º 5
0
 public static TTarget Map <TSource, TTarget>(TSource source)
     where TSource : class
     where TTarget : class
 {
     return(MapperInternal <TSource, TTarget> .Map(source));
 }