From 7d547c99d8081aa2c18d42bef3af9fddc48ab8c3 Mon Sep 17 00:00:00 2001 From: s_falahati Date: Sat, 9 Feb 2019 09:47:06 +0330 Subject: [PATCH] Minor cleanup and bugfix --- WindowsFirewallHelper/FirewallProduct.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/WindowsFirewallHelper/FirewallProduct.cs b/WindowsFirewallHelper/FirewallProduct.cs index dbdf505..6831f3f 100644 --- a/WindowsFirewallHelper/FirewallProduct.cs +++ b/WindowsFirewallHelper/FirewallProduct.cs @@ -11,7 +11,7 @@ public class FirewallProduct { public FirewallProduct(string name) { - if (IsSupported) + if (!IsSupported) { throw new NotSupportedException(); } @@ -79,7 +79,7 @@ public string SignedExecutableFilename /// /// Returns the list of all registered third party firewalls management instances /// - public static ICollection ThirdPartyFirewalls + public static ICollection RegisteredProducts { get => new FirewallProductsCollection(GetProducts()); }