public TDest Map <TSource, TDest>(TSource source, TDest destination) { EnsureMappingConfigured <TSource, TDest>(); MappingExpression <TSource, TDest> .Apply(source, destination); return(destination); }
public TDest Map <TSource, TDest>(TSource source) where TDest : new() { EnsureMappingConfigured <TSource, TDest>(); var destination = new TDest(); MappingExpression <TSource, TDest> .Apply(source, destination); return(destination); }