public object BuildFuncOfT(ContainerImpl container, Type funcType) { var obj = container.Instances[_instanceIndex]; return(ClosureOfObjBuilder.Build(funcType, obj)); }
public object?BuildFuncOfT(ContainerImpl container, Type funcType) { var obj = container.Singletons[_singletonIndex]; return(obj == null ? null : ClosureOfObjBuilder.Build(funcType, obj)); }