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