private static UResourceBundle LoadFromCache(UResourceBundle.ResourceCacheKey key)
 {
     if (BUNDLE_CACHE != null)
     {
         IDictionary m = (IDictionary)BUNDLE_CACHE.Target;
         if (m != null)
         {
             return((UResourceBundle)ILOG.J2CsMapping.Collections.Collections.Get(m, key));
         }
     }
     return(null);
 }
 // /CLOVER:OFF
 public override bool Equals(Object other)
 {
     if ((Object)this == other)
     {
         return(true);
     }
     try {
         UResourceBundle.ResourceCacheKey otherEntry = (UResourceBundle.ResourceCacheKey)other;
         // quick check to see if they are not equal
         if (hashCodeCache != otherEntry.hashCodeCache)
         {
             return(false);
         }
         // are the names the same?
         if (!searchName.Equals(otherEntry.searchName))
         {
             return(false);
         }
         // are the default locales the same?
         if (defaultLocale == null)
         {
             if (otherEntry.defaultLocale != null)
             {
                 return(false);
             }
         }
         else
         {
             if (!defaultLocale.Equals(otherEntry.defaultLocale))
             {
                 return(false);
             }
         }
         // are refs (both non-null) or (both null)?
         if (loaderRef == null)
         {
             return(otherEntry.loaderRef == null);
         }
         else
         {
             return((otherEntry.loaderRef != null) &&
                    (loaderRef.Target == otherEntry.loaderRef.Target));
         }
     } catch (NullReferenceException e) {
         return(false);
     } catch (InvalidCastException e_0) {
         return(false);
     }
 }
        private static void AddToCache(UResourceBundle.ResourceCacheKey key, UResourceBundle b)
        {
            IDictionary m = null;

            if (BUNDLE_CACHE != null)
            {
                m = (IDictionary)BUNDLE_CACHE.Target;
            }
            if (m == null)
            {
                m            = new Hashtable();
                BUNDLE_CACHE = new WeakReference(m);
            }
            ILOG.J2CsMapping.Collections.Collections.Put(m, key, b);
        }