Exemplo n.º 1
0
        internal IMapper GetOrCreateMap(Type fromType, Type toType)
        {
            var key = fromType.FullName + "->" + toType.FullName;

            if (MapperRegistry.ContainsKey(key))
            {
                return(MapperRegistry[key]);
            }

            return(CreateMap(fromType, toType, key));
        }