public override IEnumerable <ZenjectResolveException> ValidateBinding(InjectContext context)
        {
            // Can't validate custom methods so assume they work
            if (_creator.HasInstance() || _creator.HasCustomCreateMethod)
            {
                // This would be the case if given an instance at binding time with ToSingle(instance)
                return(Enumerable.Empty <ZenjectResolveException>());
            }

            return(_container.ValidateObjectGraph(GetInstanceType(), context, _creator.Id.Identifier));
        }
 public override bool HasInstance(Type contractType)
 {
     return(_creator.HasInstance());
 }