internal static bool Prefix_IsDefined(Type enumType, object value, ref bool __result)
        {
            if (enumType.Equals(typeof(CraftTree.Type)))
            {
                if (cacheManager.ContainsKey((CraftTree.Type)value))
                {
                    __result = true;
                    return(false);
                }
            }

            return(true);
        }
Beispiel #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));
 }