示例#1
0
 public static List <TTarget> Map <TSource, TTarget>(List <TSource> sourceList)
     where TSource : class
     where TTarget : class
 {
     return(MapperInternal <TSource, TTarget> .MapList(sourceList).ToList());
 }
示例#2
0
 public static TTarget[] Map <TSource, TTarget>(TSource[] sourceList)
     where TSource : class
     where TTarget : class
 {
     return(MapperInternal <TSource, TTarget> .MapList(sourceList).ToArray());
 }
示例#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));
 }