Ejemplo n.º 1
0
 public virtual IEnumerable <string> GetProductNameList()
 {
     return(RegUtils.GetInstalledProducts().Select(s => s.Value.DisplayName).Where(s => {
         return s?.Contains(ProductLookUpName) ?? false;
     }));
 }
Ejemplo n.º 2
0
 //TODO add to IProductLookUp interface in Dynamo 3.0
 //Returns product names and code tuples for products which have valid display name.
 internal virtual IEnumerable <(string DisplayName, string ProductKey)> GetProductNameAndCodeList()
 {
     return(RegUtils.GetInstalledProducts().ToList().Select(s => (s.Value.DisplayName, s.Key)).Where(s => {
         return s.DisplayName?.Contains(ProductLookUpName) ?? false;
     }));
 }