Ejemplo n.º 1
0
        private IATMap AddMapping(Type type, IATMap map)
        {
            if (map == null)
            {
                return(null);
            }
            var th = type.TypeHandle.Value;

            if (!typeMaps.ContainsKey(th))
            {
                typeMaps.Add(th, new List <IATMFactory>());
            }
            typeMaps[th].Add(map as IATMFactory);
            return(map);
        }
Ejemplo n.º 2
0
 private IATMap <T> AddMapping <T>(IATMap map) where T : class
 {
     return((IATMap <T>)AddMapping(typeof(T), map));
 }