public bool OverlapsWith(Type serviceType) { if (this.Predicate != null) { // Conditionals never overlap compile time. return(false); } return(GenericTypeBuilder.IsImplementationApplicableToEveryGenericType(serviceType, this.ImplementationType)); }
private bool IsImplementationApplicableToEveryGenericType() { return(GenericTypeBuilder.IsImplementationApplicableToEveryGenericType( this.ServiceType, this.ImplementationType)); }
public bool OverlapsWith(InstanceProducer producerToCheck) => this.IsConditional || this.ImplementationType == null ? false // Conditionals never overlap compile time. : GenericTypeBuilder.IsImplementationApplicableToEveryGenericType( producerToCheck.ServiceType, this.ImplementationType);
public bool OverlapsWith(Type serviceType) => this.Predicate != null || this.ImplementationType == null ? false // Conditionals never overlap compile time. : GenericTypeBuilder.IsImplementationApplicableToEveryGenericType(serviceType, this.ImplementationType);