public void Register(Type from, Type to) { RegisterCheck(from); var register = new RegisteredPair(from, to); _registry.Add(register); }
public void RegisterInstance(Type type, object instance) { RegisterCheck(type); var register = new RegisteredPair(); register.From = type; register.Instance = instance; _registry.Add(register); }