private static T[] GetValues <T>(EnumCacheManager <T> cacheManager, Array __result) where T : Enum { var list = new List <T>(); foreach (T type in __result) { list.Add(type); } list.AddRange(cacheManager.ModdedKeys); return(list.ToArray()); }
private static bool IsDefined <T>(EnumCacheManager <T> cacheManager, Type enumType, object value) where T : Enum { return(enumType.Equals(typeof(T)) && cacheManager.ContainsKey((T)value)); }