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); }
private IATMap <T> AddMapping <T>(IATMap map) where T : class { return((IATMap <T>)AddMapping(typeof(T), map)); }