private bool IsSelfRegistered(Type interfaceType, DependencyRegistrationRequirement d)
        {
            if (interfaceType == d.DependencyRequired)
            {
                return(true);
            }

            Type[] implementedInterfaces = d.DependencyRequired.GetInterfaces();
            return(implementedInterfaces.Contains(interfaceType));
        }
        private bool IsSelfRegistered(Type interfaceType, DependencyRegistrationRequirement d)
        {
            if (interfaceType == d.DependencyRequired) return true;

            Type[] implementedInterfaces = d.DependencyRequired.GetInterfaces();
            return implementedInterfaces.Contains(interfaceType);
        }