Esempio n. 1
0
        internal static TDest Map <TSource, TDest>(TSource source)
            where TDest : class, new()
            where TSource : class
        {
            TDest dest = new TDest();

            Action <TSource, TDest> mappingAction = MappingResolver.GetMapper(source, dest);

            mappingAction(source, dest);

            return(dest);
        }