private object GetInstance(RegisteredObject registeredObject) { if (registeredObject.Instance != null && registeredObject.LifeCycle != LifeCycle.Transient) { return(registeredObject.Instance); } var parameters = ResolveConstructParameters(registeredObject); registeredObject.CreateInstance(parameters.ToArray()); return(registeredObject.Instance); }
static void To(this RegisteredObject registertewdObject) { }