public I CreateInstance <I>() { Type i = typeof(I); FactoryMap map = (FactoryMap)BindingTable[i]; return(map.CreateInstance()); }
public FactoryMap Bind <I, T>() { FactoryMap map = new FactoryMap() { }; map.Bind <I, T>(); // BindingList.Add(map); Type t = typeof(T); BindingTable.Add(t, map); return(map); }