Пример #1
0
 //map source to an existing target
 public static TTarget Map <TSource, TTarget>(TSource source, TTarget target)
 {
     target = MapperFactory.GetMapper <TSource, TTarget>().Map(source, target);
     return(target);
 }
Пример #2
0
 static Mapper()
 {
     MapperFactory.AddMapper <CultureInfo, CultureInfo>(new CultureInfoTypeMapper());
 }