public void removeNamedMapping <T>(NamedInjections namedInjection) { string name = namedInjection.ToString(); if (!namedInjectionMap.ContainsKey(name)) { namedInjectionMap.Add(name, new Dictionary <Type, object>()); } if (namedInjectionMap[name].ContainsKey(typeof(T))) { namedInjectionMap[name].Remove(typeof(T)); } }
public T manualGetMapping <T>(NamedInjections name) where T : class { return(namedInjectionMap[name.ToString()][typeof(T)] as T); }
public void addNamedMapping <T>(NamedInjections name, object valueToPutIn) { addNamedMapping <T>(name.ToString(), valueToPutIn); }