Ejemplo n.º 1
0
        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());
        }
Ejemplo n.º 2
0
 private static bool IsDefined <T>(EnumCacheManager <T> cacheManager, Type enumType, object value) where T : Enum
 {
     return(enumType.Equals(typeof(T)) && cacheManager.ContainsKey((T)value));
 }