public static bool CheckCounters() { return (PerformanceCounterCategory.Exists(categoryName) && Counters.All(counter => PerformanceCounterCategory.CounterExists(counter.CounterName, categoryName))); }
static bool CheckCountersExist() { return(Counters.All(counter => PerformanceCounterCategory.CounterExists(counter.CounterName, categoryName))); }