public TDestination Map <TSource, TDestination>(TSource source, TDestination destination) where TDestination : class { IMappable instance = Configuration.GetMap <TSource, TDestination>(); var mapInfo = Configuration.GetMapInfo <TSource, TDestination>(); var result = instance.ConvertTo(source, destination) as TDestination; mapInfo.ExecuteCustomMappings(source, result); return(result); }