예제 #1
0
        private IEnumerable <IProductBinarySoftwareDetector> GetDetectors(SoftwareProductInfo product)
        {
            var productName = product?.Name;

            return(productName == null
                ? GetDetectors()
                : SoftwareDetectors
                   .Where(d => d.ProductName.Equals(productName, StringComparison.Ordinal)));
        }
예제 #2
0
 private IEnumerable <IProductBinarySoftwareDetector> GetDetectors()
 {
     return(SoftwareDetectors
            .Where(d => d.CategoryName.Equals(CategoryName, StringComparison.Ordinal)));
 }