private static void VerifyContainerUncontrolledCollection(object instance, InstanceProducer producer) { bool isContainerUncontrolledCollection = producer.Registration.IsCollection && !(instance is IContainerControlledCollection); if (isContainerUncontrolledCollection) { Type collectionType = producer.ServiceType; Type serviceType = collectionType.Info().GetGenericArguments()[0]; Helpers.VerifyCollection((IEnumerable)instance, serviceType); } }