Esempio n. 1
0
        public bool CanResolve(Type type)
        {
            var instance = GetInstance(type);

            if (instance != null)
            {
                return(true);
            }
            if (CanCreateFor(type))
            {
                return(true);
            }
            if (parent == null)
            {
                return(false);
            }
            return(parent.CanResolve(type));
        }