public static bool isValidType(int type) { string nameByType = TypeNameContainer <MysteryerConfig._RefreshType> .GetNameByType(type); return((nameByType != null) && (nameByType.Trim() != "")); }