private IEnumerable <IProductBinarySoftwareDetector> GetDetectors(SoftwareProductInfo product) { var productName = product?.Name; return(productName == null ? GetDetectors() : SoftwareDetectors .Where(d => d.ProductName.Equals(productName, StringComparison.Ordinal))); }
private IEnumerable <IProductBinarySoftwareDetector> GetDetectors() { return(SoftwareDetectors .Where(d => d.CategoryName.Equals(CategoryName, StringComparison.Ordinal))); }