public static string GetCategoryNameString(PerformanceCategoryEnum eEnum) { if (ThisEnumDictionary.ContainsKey(eEnum)) { return(ThisEnumDictionary[eEnum]); } return("No such PerformanceCategoryEnum!"); }
public static string GetCategoryHelp(PerformanceCategoryEnum eEnum) { if (ThisEnumDictionary.ContainsKey(eEnum)) { var thisCategory = new PerformanceCounterCategory(ThisEnumDictionary[eEnum]); return(thisCategory.CategoryHelp); } return("No such PerformanceCategoryEnum!"); }