Exemple #1
0
        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));
        }